From 38a7cd90151949be2777d5a0d4511770917897d5 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 14 Nov 2025 17:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=BA=A7=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=AD=98=E5=9C=A8objectId=E6=97=A0=E6=B3=95=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/home/tools/toProduct/index.vue | 5 +++-- src/component/toolsPage/index.vue | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/component/home/tools/toProduct/index.vue b/src/component/home/tools/toProduct/index.vue index a9bbc011..d30463d2 100644 --- a/src/component/home/tools/toProduct/index.vue +++ b/src/component/home/tools/toProduct/index.vue @@ -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 ) } diff --git a/src/component/toolsPage/index.vue b/src/component/toolsPage/index.vue index 26e80b6d..5997d521 100644 --- a/src/component/toolsPage/index.vue +++ b/src/component/toolsPage/index.vue @@ -112,6 +112,7 @@ export default defineComponent({ } Https.axiosPost(Https.httpUrls.projectSaveOrUpdate,value).then((rv)=>{ if(rv){ + store.commit('clearAllCollection') let value = { id:rv.id }