From a665e924cc48f7d40d8dd7b24107c1f33d04ed28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Sat, 25 Oct 2025 14:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E5=95=86?= =?UTF-8?q?=E5=93=81=E4=B8=AD=E9=A1=B5=E9=9D=A2=E6=95=B0=E9=87=8F=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA0=E4=B8=AA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shop/search/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/shop/search/index.vue b/packages/shop/search/index.vue index 27376f50..73770675 100644 --- a/packages/shop/search/index.vue +++ b/packages/shop/search/index.vue @@ -371,6 +371,8 @@ export default { const goods = this.goodsDetail.find(g => g.goods_id === param.id); if (goods) { this.$set(param, 'quantity', goods.count); + }else{ + this.$set(param, 'quantity', 0); } }); });