优化代码健壮性
This commit is contained in:
parent
1176e928bf
commit
44e16b77e8
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue