合并代码

This commit is contained in:
duan 2024-06-04 10:36:56 +08:00
parent 636a8e2915
commit a54580549a
1 changed files with 5 additions and 4 deletions

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)