Fix(购物车):[#1361]购物车单个商品增加数量,全选后数字未变

This commit is contained in:
lifizer
2024-04-29 14:30:02 +08:00
parent 62a53ad6d1
commit 8b295633b9
+1 -1
View File
@@ -258,7 +258,7 @@ export default {
let count = 0
this.list.forEach(item => {
item['carts'].forEach(good => {
if (good.state) count++
if (good.state) count += good.cartNum || 1
})
})
return count