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