From 8b295633b96488700e70044a68a1e334d2b8c1c5 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 29 Apr 2024 14:30:02 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E8=B4=AD=E7=89=A9=E8=BD=A6):[#1361]?= =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=8D=95=E4=B8=AA=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E9=87=8F=EF=BC=8C=E5=85=A8=E9=80=89?= =?UTF-8?q?=E5=90=8E=E6=95=B0=E5=AD=97=E6=9C=AA=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cart.vue b/pages/cart.vue index f81faf3..0bd0a8c 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -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