合并代码

This commit is contained in:
duan
2024-06-04 10:36:56 +08:00
parent 636a8e2915
commit a54580549a

View File

@@ -389,12 +389,13 @@
this.cartLists = msg
if (msg.data.length != 0) {
msg.data.forEach((item, index, arr) => { //初始化skuidname的数据 选择第一个
console.log(this.skuidsearch,'调试1')
console.log(item.skuId,'调试2')
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)