Browse Source

购物车更新

yuhongqi 2 tuần trước cách đây
mục cha
commit
c2d2c9b697
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pages/shopping/cart.vue

+ 1 - 1
pages/shopping/cart.vue

@@ -333,7 +333,7 @@ export default {
       const idx = this.carts.findIndex(c => c.id === item.id);
       if(idx === -1) return;
       let newNum = item.cartNum - 1;
-      if (newNum <= 1) {
+      if (newNum < 1) {
         newNum = 1;
         uni.showToast({
           title: "已经是底线啦!",