+
+ 用户名:
+ {{ loginStore.userInfo?.user?.name || loginStore.userInfo?.user?.username }}
+
用户ID:
{{ loginStore.userInfo?.user?.id }}
@@ -84,8 +89,8 @@ const showRechargeModal = ref(false);
const userDropdownVisible = ref(false);
// 余额
const balances = ref(0);
-const userDisplayName = computed(() => loginStore.userInfo?.user?.name || loginStore.userInfo?.user?.username || '用户');
-const userInitial = computed(() => userDisplayName.value.trim().charAt(0).toUpperCase() || 'U');
+// const userDisplayName = computed(() => loginStore.userInfo?.user?.name || loginStore.userInfo?.user?.username || '用户');
+// const userInitial = computed(() => userDisplayName.value.trim().charAt(0).toUpperCase() || 'U');
const formattedBalance = computed(() => Number(balances.value || 0).toLocaleString('zh-CN'));
// 切换下拉菜单
@@ -106,7 +111,6 @@ const handleLogout = () => {
const getBalance = async () => {
try {
const res = await balance();
- console.log('用户余额:', res);
if (res.status === 'ok') {
balances.value = res.data[0].balance;
}
diff --git a/src/components/Recharge/Recharge.vue b/src/components/Recharge/Recharge.vue
index a47cd2c..0345146 100644
--- a/src/components/Recharge/Recharge.vue
+++ b/src/components/Recharge/Recharge.vue
@@ -221,9 +221,6 @@ const confirmCustomAmount = () => {
// 更新主弹窗选中金额
selectedAmount.value = finalAmount;
- // 打印参数 (自定义弹窗确定)
- console.log('[自定义充值] amount:', finalAmount);
-
// 关闭自定义弹窗
closeCustomDialog();
};
@@ -246,9 +243,6 @@ const handleConfirm = async () => {
currency: 'CNY'
};
- // 打印参数 (主弹窗确认)
- console.log('[确认充值]', rechargeParams);
-
// 充值响应类型
interface RechargeResponse {
status: string;
@@ -258,7 +252,6 @@ interface RechargeResponse {
// 调用充值接口
const res = await recharge(rechargeParams);
- console.log('充值接口返回:', res);
// 处理充值结果
if (res.status === 'ok') {
diff --git a/src/components/RightResult/RightResult.vue b/src/components/RightResult/RightResult.vue
index 8e03e44..d986dbb 100644
--- a/src/components/RightResult/RightResult.vue
+++ b/src/components/RightResult/RightResult.vue
@@ -439,23 +439,16 @@ const stopPolling = () => {
* 从后端获取今日任务列表并转换为前端格式
*/
const loadTaskList = async () => {
- console.log('=== 开始加载任务列表 ===');
-
if (!isLoggedIn.value) {
- console.log('未登录,跳过加载');
return;
}
isLoading.value = true;
try {
- console.log('正在调用 getTodayTask 接口...');
// 调用任务列表接口
const res = await getTodayTask();
- console.log('getTodayTask 响应:', res);
-
if (res.status === 'ok' && res.data?.tasks && Array.isArray(res.data.tasks)) {
- console.log('任务列表数据:', res.data.tasks);
// 转换后端数据格式为前端期望的格式
taskList.value = res.data.tasks.map((task) => {
const output = task.ioinfo?.output || [];
@@ -477,8 +470,6 @@ const loadTaskList = async () => {
} as TaskItem;
});
- console.log('转换后的任务列表:', taskList.value);
-
// 加载完成后,启动轮询(如果有进行中的任务)
const hasProcessingTasks = taskList.value.some(task =>
task.status === 'created' ||
@@ -487,14 +478,11 @@ const loadTaskList = async () => {
task.status === 'running' ||
task.status === 'PENDING'
);
- console.log('是否有进行中的任务:', hasProcessingTasks);
if (hasProcessingTasks) {
- console.log('启动轮询...');
startPolling();
}
} else {
- console.log('任务列表为空或格式错误');
taskList.value = [];
}
} catch (error) {
@@ -502,7 +490,6 @@ const loadTaskList = async () => {
taskList.value = [];
} finally {
isLoading.value = false;
- console.log('=== 任务列表加载完成 ===');
}
};
diff --git a/src/components/index/StencilWaterfall.vue b/src/components/index/StencilWaterfall.vue
index d3468a9..0cfdb74 100644
--- a/src/components/index/StencilWaterfall.vue
+++ b/src/components/index/StencilWaterfall.vue
@@ -98,7 +98,7 @@ const setVideoRef = (index: number, el: HTMLVideoElement | null) => {
const handleMouseEnter = (index: number) => {
const video = videoRefs.value[index]
if (video) {
- video.play().catch(err => console.log('播放失败:', err))
+ video.play().catch(() => undefined)
isVideoPlaying.value[index] = true
}
}
diff --git a/src/components/video/ImgVideo.vue b/src/components/video/ImgVideo.vue
index 44bf7c1..e7e5305 100644
--- a/src/components/video/ImgVideo.vue
+++ b/src/components/video/ImgVideo.vue
@@ -308,7 +308,6 @@ const buildPriceParams = (): PriceQueryParams | null => {
config_data: configDataForPrice,
};
- console.log('=== 构建价格查询参数 ===', priceParams);
return priceParams;
};
@@ -397,7 +396,6 @@ const loadModels = async () => {
const handleModelChange = (modelId: string) => {
const selected = models.value.find(m => m.id === modelId);
if (selected) {
- console.log('=== 切换模型 ===', selected.name);
currentModel.value = selected;
// 清空图片相关数据
uploadedFiles.value = {};
@@ -454,8 +452,6 @@ const handleFileChange = (file: UploadFile, fieldName: string) => {
const base64 = e.target?.result as string;
uploadedFiles.value[fieldName] = base64;
uploadedFileNames.value[fieldName] = fileName;
-
- console.log('=== 上传图片 ===', { fieldName, fileName, base64Length: base64.length });
ElMessage.success('上传成功');
};
reader.readAsDataURL(rawFile);
@@ -468,8 +464,6 @@ const handleFileChange = (file: UploadFile, fieldName: string) => {
const handleRemove = (fieldName: string) => {
uploadedFiles.value[fieldName] = '';
uploadedFileNames.value[fieldName] = '';
-
- console.log('=== 删除图片 ===', fieldName);
ElMessage.info('已移除图片');
};
@@ -508,7 +502,6 @@ const buildSubmitParams = (): Record => {
Object.keys(uploadedFiles.value).forEach(key => {
if (uploadedFiles.value[key]) {
baseParams[key] = uploadedFiles.value[key];
- console.log('提交字段:', key, 'Base64长度:', uploadedFiles.value[key].length);
}
});
@@ -524,7 +517,6 @@ const buildSubmitParams = (): Record => {
}
});
- console.log('=== 构建提交参数 ===', baseParams);
return baseParams;
};
@@ -565,8 +557,6 @@ const generate = async (): Promise => {
const params = buildSubmitParams();
const res = (await imagetovideo(params)) as TextVideoResponse;
- console.log('=== 图生视频接口响应 ===', res);
-
const taskid = res.data?.taskid || res.taskid;
if (res.status === 'created' || res.status === 'processing' || res.status === 'queueing' || res.status === 'CREATED') {
@@ -600,7 +590,6 @@ const generate = async (): Promise => {
* 重置表单(清空输入、图片、配置恢复默认)
*/
const resetForm = () => {
- console.log('=== 重置表单 ===');
prompt.value = '';
uploadedFiles.value = {};
uploadedFileNames.value = {};
diff --git a/src/components/video/ReferenceVideo.vue b/src/components/video/ReferenceVideo.vue
index 5489ec1..e77c92f 100644
--- a/src/components/video/ReferenceVideo.vue
+++ b/src/components/video/ReferenceVideo.vue
@@ -190,7 +190,7 @@