bug修改

This commit is contained in:
mabo
2021-05-17 10:34:54 +08:00
parent cd86e1de22
commit 9df8a753d4
4 changed files with 10 additions and 9 deletions

View File

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