zs 2 年之前
父節點
當前提交
27b2502863
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      pages/market/index.vue

+ 1 - 2
pages/market/index.vue

@@ -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');