feat: toProduct未输入提示词时不可生成

This commit is contained in:
zhangyh
2025-11-12 16:33:17 +08:00
parent 16bea0f261
commit 463134612b
3 changed files with 11 additions and 4 deletions

View File

@@ -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 = []