优化代码健壮性

This commit is contained in:
weipengfei 2023-12-01 16:25:23 +08:00
parent 1176e928bf
commit 44e16b77e8
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@
// this.item = item
},
initShop(item){
if(item.spec==''||item.spec==undefined||item.spec==null){
item.spec = "标准版"
}
item.attr = [{
value: '规格',
detail: [item.spec]