Showing
1 changed file
with
3 additions
and
3 deletions
... | ... | @@ -21,6 +21,7 @@ export const mutations = { |
21 | 21 | // 退出APP |
22 | 22 | emptyUserInfo(state) { |
23 | 23 | state.userInfo = {}; |
24 | + state.badgeInfo = 0; | |
24 | 25 | // #ifdef H5 |
25 | 26 | window.sessionStorage.removeItem("userInfo"); |
26 | 27 | // #endif |
... | ... | @@ -29,7 +30,7 @@ export const mutations = { |
29 | 30 | uni.removeStorageSync('storagePre'); |
30 | 31 | // #endif |
31 | 32 | }, |
32 | - setBadgeInfo(state,payload){ | |
33 | + setBadgeInfo(state, payload) { | |
33 | 34 | state.badgeInfo = payload; |
34 | 35 | } |
35 | 36 | }; |
... | ... | @@ -39,7 +40,6 @@ export const actions = { |
39 | 40 | state, |
40 | 41 | commit |
41 | 42 | }, data) { |
42 | - commit('setBadgeInfo',data) | |
43 | - console.log('Change total', data,state); | |
43 | + commit('setBadgeInfo', data) | |
44 | 44 | } |
45 | 45 | }; | ... | ... |