登录失效,购物车商品数不变问题

This commit is contained in:
mabo
2021-05-17 11:00:02 +08:00
parent 9df8a753d4
commit 182a77f0cb
3 changed files with 8 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ export default new Vuex.Store({
state: {
category: [], // 全部分类
navList: [],
cartNum: storage.getItem('userInfo') ? storage.getItem('cartNum') : 0
cartNum: storage.getItem('cartNum') || 0
},
getters,
actions,