We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab1910 commit cbb3012Copy full SHA for cbb3012
src/store/mutations.js
@@ -94,9 +94,9 @@ export default {
94
specs,
95
}) {
96
let cart = state.cartList;
97
- let shop = cart[shopid] = (cart[shopid] || {});
98
- let category = shop[category_id] = (shop[category_id] || {});
99
- let item = category[item_id] = (category[item_id] || {});
+ let shop = (cart[shopid] || {});
+ let category = (shop[category_id] || {});
+ let item = (category[item_id] || {});
100
if (item && item[food_id]) {
101
if (item[food_id]['num'] > 0) {
102
item[food_id]['num']--;
0 commit comments