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