修复高级工具存在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) { if (!isLt2M) {
message.info(useI18n().t('MoodboardUpload.jsContent4')) message.info(useI18n().t('MoodboardUpload.jsContent4'))
} }
if (!productImgData.selectObject.id && !isSelectObject) { const objectId = route?.query?.id
if (!objectId && !isSelectObject) {
isSelectObject = true isSelectObject = true
productImgData.selectObject.id = await createProbject() productImgData.selectObject.id = await createProbject()
upload.value = { upload.value = {
@@ -645,7 +646,7 @@ export default defineComponent({
} }
} }
return !!( return !!(
(isJpgOrPng && isLt2M && productImgData.selectObject.id) || (isJpgOrPng && isLt2M && objectId) ||
Upload.LIST_IGNORE Upload.LIST_IGNORE
) )
} }

View File

@@ -112,6 +112,7 @@ export default defineComponent({
} }
Https.axiosPost(Https.httpUrls.projectSaveOrUpdate,value).then((rv)=>{ Https.axiosPost(Https.httpUrls.projectSaveOrUpdate,value).then((rv)=>{
if(rv){ if(rv){
store.commit('clearAllCollection')
let value = { let value = {
id:rv.id id:rv.id
} }