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