优化提交
This commit is contained in:
@@ -391,9 +391,10 @@
|
||||
msg.data.forEach((item, index, arr) => { //初始化skuidname的数据 选择第一个
|
||||
if (item.skuId == this.skuidsearch) {
|
||||
this.$set(this, 'amountcartNumber', item.number)
|
||||
} else {
|
||||
this.$set(this, 'amountcartNumber', 0)
|
||||
}
|
||||
}
|
||||
// else {
|
||||
// this.$set(this, 'amountcartNumber', 0)
|
||||
// }
|
||||
})
|
||||
} else {
|
||||
this.$set(this, 'amountcartNumber', 0)
|
||||
@@ -527,6 +528,7 @@
|
||||
return res
|
||||
})
|
||||
this.specifications.tagSnap.forEach((val, index, arr) => { //初始化skuidname的数据 选择第一个
|
||||
console.log(val.children[0],'skuidnam是否为空1')
|
||||
this.skuidname.push(val.children[0])
|
||||
})
|
||||
try {
|
||||
@@ -539,6 +541,7 @@
|
||||
}
|
||||
},
|
||||
async morloe(e, index, index1, item) {
|
||||
console.log(index,'skuidnam是否为空2')
|
||||
this.specifications.tagSnap[index]['start'] = index1
|
||||
this.skuidname.splice(index, 1, e) //替换skuidname的数据
|
||||
this.hodgepodge(item, 2)
|
||||
|
||||
Reference in New Issue
Block a user