diff --git a/pages/index/cart.vue b/pages/index/cart.vue index c67c8b6a..2485ae84 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -151,6 +151,7 @@ cart.delete(cartItem.id); return; } + if(cartItem.goods_num === e) return; cartItem.goods_num = e; cart.update({ goods_id: cartItem.goods_id,