feat: toProduct未输入提示词时不可生成
This commit is contained in:
@@ -720,6 +720,11 @@ export default defineComponent({
|
|||||||
let remPrductimgTime: any = null
|
let remPrductimgTime: any = null
|
||||||
let prductimgTime: any = null
|
let prductimgTime: any = null
|
||||||
let getPrductimg = () => {
|
let getPrductimg = () => {
|
||||||
|
// 未输入prompt时不可生成
|
||||||
|
if (!productImgData.searchName[props.productimgMenu.value]) {
|
||||||
|
message.info(t('ProductImg.noPrompt'))
|
||||||
|
return
|
||||||
|
}
|
||||||
if (productImgData.isProductimg) return
|
if (productImgData.isProductimg) return
|
||||||
clearInterval(remPrductimgTime)
|
clearInterval(remPrductimgTime)
|
||||||
let selectArr: any = []
|
let selectArr: any = []
|
||||||
|
|||||||
@@ -284,7 +284,8 @@ export default {
|
|||||||
PromptAssit: '提示词助手',
|
PromptAssit: '提示词助手',
|
||||||
AssitSubTitle: '您可以复制并使用以下提示词:',
|
AssitSubTitle: '您可以复制并使用以下提示词:',
|
||||||
CopySuccess: '已复制到剪贴板',
|
CopySuccess: '已复制到剪贴板',
|
||||||
CopyFiled: '复制失败'
|
CopyFiled: '复制失败',
|
||||||
|
noPrompt:'请输入提示词'
|
||||||
},
|
},
|
||||||
poseTransfer: {
|
poseTransfer: {
|
||||||
SelectDesign: '产品图',
|
SelectDesign: '产品图',
|
||||||
|
|||||||
@@ -294,7 +294,8 @@ export default {
|
|||||||
PromptAssit: 'Prompt Assist',
|
PromptAssit: 'Prompt Assist',
|
||||||
AssitSubTitle: 'You can copy following prompt and try:',
|
AssitSubTitle: 'You can copy following prompt and try:',
|
||||||
CopySuccess: 'Copied to clipboard',
|
CopySuccess: 'Copied to clipboard',
|
||||||
CopyFiled: 'Failed to copy'
|
CopyFiled: 'Failed to copy',
|
||||||
|
noPrompt:'Please enter prompt'
|
||||||
},
|
},
|
||||||
poseTransfer: {
|
poseTransfer: {
|
||||||
SelectDesign: 'Product image',
|
SelectDesign: 'Product image',
|
||||||
|
|||||||
Reference in New Issue
Block a user