修复高级工具存在objectId无法创建项目

This commit is contained in:
X1627315083
2025-11-14 17:20:18 +08:00
parent 1b289ae265
commit 38a7cd9015
2 changed files with 4 additions and 2 deletions

View File

@@ -636,7 +636,8 @@ export default defineComponent({
if (!isLt2M) {
message.info(useI18n().t('MoodboardUpload.jsContent4'))
}
if (!productImgData.selectObject.id && !isSelectObject) {
const objectId = route?.query?.id
if (!objectId && !isSelectObject) {
isSelectObject = true
productImgData.selectObject.id = await createProbject()
upload.value = {
@@ -645,7 +646,7 @@ export default defineComponent({
}
}
return !!(
(isJpgOrPng && isLt2M && productImgData.selectObject.id) ||
(isJpgOrPng && isLt2M && objectId) ||
Upload.LIST_IGNORE
)
}