fix
This commit is contained in:
@@ -799,7 +799,7 @@ export default defineComponent({
|
||||
this.designItemDetail.clothes[index].clothesOpen = true
|
||||
},
|
||||
setClothesOpen(){
|
||||
if(this.designItemDetail.clothes[this.designItemDetail.clothes.length-1].id){
|
||||
if(this.designItemDetail.clothes?.[this.designItemDetail?.clothes.length-1]?.id || this.designItemDetail?.clothes.length==0){
|
||||
}else{
|
||||
return
|
||||
}
|
||||
|
||||
@@ -758,7 +758,7 @@ export default defineComponent({
|
||||
if (!isJpgOrPng) {
|
||||
message.info(this.t('DesignDetailAlter.jsContent4'));
|
||||
}
|
||||
const isLt2M = file.size / 1024 / 1024 < 5;
|
||||
const isLt2M = file.size / 1024 / 1024 < 3;
|
||||
if (!isLt2M) {
|
||||
message.info(this.t('DesignDetailAlter.jsContent5'));
|
||||
}
|
||||
|
||||
@@ -427,7 +427,7 @@ export default defineComponent({
|
||||
if (!isJpgOrPng) {
|
||||
message.info(this.t('ColorboardUpload.jsContent3'));
|
||||
}
|
||||
const isLt2M = file.size / 1024 / 1024 < 5;
|
||||
const isLt2M = file.size / 1024 / 1024 < 3;
|
||||
if (!isLt2M) {
|
||||
message.info(this.t('ColorboardUpload.jsContent4'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user