zs 2 lat temu
rodzic
commit
27b2502863
1 zmienionych plików z 1 dodań i 2 usunięć
  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');