Эх сурвалжийг харах

fix: 优化购物车性能

lidongtony 2 жил өмнө
parent
commit
cd12e5510d
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      pages/index/cart.vue

+ 1 - 0
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,