fix: 优化购物车性能

pull/8/head
lidongtony 2023-03-29 19:29:32 +08:00
parent aa22b927e7
commit cd12e5510d
1 changed files with 1 additions and 0 deletions

View File

@ -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,