修复高级工具存在objectId无法创建项目
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user