From 463134612b2d04ee717e74ff6fe5960f9a2a4368 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Wed, 12 Nov 2025 16:33:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20toProduct=E6=9C=AA=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E6=97=B6=E4=B8=8D=E5=8F=AF=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/home/tools/toProduct/index.vue | 5 +++++ src/lang/cn.ts | 7 ++++--- src/lang/en.ts | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/component/home/tools/toProduct/index.vue b/src/component/home/tools/toProduct/index.vue index 179c6f68..a9bbc011 100644 --- a/src/component/home/tools/toProduct/index.vue +++ b/src/component/home/tools/toProduct/index.vue @@ -720,6 +720,11 @@ export default defineComponent({ let remPrductimgTime: any = null let prductimgTime: any = null let getPrductimg = () => { + // 未输入prompt时不可生成 + if (!productImgData.searchName[props.productimgMenu.value]) { + message.info(t('ProductImg.noPrompt')) + return + } if (productImgData.isProductimg) return clearInterval(remPrductimgTime) let selectArr: any = [] diff --git a/src/lang/cn.ts b/src/lang/cn.ts index 3559564a..607dffe8 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -284,7 +284,8 @@ export default { PromptAssit: '提示词助手', AssitSubTitle: '您可以复制并使用以下提示词:', CopySuccess: '已复制到剪贴板', - CopyFiled: '复制失败' + CopyFiled: '复制失败', + noPrompt:'请输入提示词' }, poseTransfer: { SelectDesign: '产品图', @@ -1224,7 +1225,7 @@ export default { basic: '基础', flipHorizontal: '水平翻转', flipVertical: '垂直翻转', - group: '组合', + group: '组合', //长毛笔 FurSettings: '长毛笔设置', FurLength: '毛发长度', @@ -1367,7 +1368,7 @@ export default { liquefactionEnvironment: '准备液化环境', liquefactionEnvironmentLoading: '正在准备液化环境,请稍候...', LiqueficationFailed: '液化工具启动失败', - TextLayer: '文本图层', + TextLayer: '文本图层', DoubleClickText: '双击编辑文本', LiquidationcuoError: '未选择有效图像或图层不适合液化操作', ErrorMessage: '错误提示', diff --git a/src/lang/en.ts b/src/lang/en.ts index 2a34aed6..bb81c9e0 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -294,7 +294,8 @@ export default { PromptAssit: 'Prompt Assist', AssitSubTitle: 'You can copy following prompt and try:', CopySuccess: 'Copied to clipboard', - CopyFiled: 'Failed to copy' + CopyFiled: 'Failed to copy', + noPrompt:'Please enter prompt' }, poseTransfer: { SelectDesign: 'Product image',