|
@@ -320,8 +320,7 @@
|
|
|
this.countMoney();
|
|
|
}
|
|
|
} else {
|
|
|
- console.log(1);
|
|
|
- const goodsList = this.list.map(i => i.goods).flat();
|
|
|
+ const goodsList = list.map(i => i.goods).flat();
|
|
|
const cartIds = goodsList.filter(i => i.check).map(i => i.cart_id)
|
|
|
for (let val of cartIds) {
|
|
|
const result = await this.$api(`/cart/${val}`, 'Delete');
|