forked from angelo/web-retail-h5
fix(logout): 登出清理缓存
This commit is contained in:
parent
11cf1a041d
commit
6374d66900
|
@ -52,6 +52,8 @@ const actions = {
|
|||
logout(state.token)
|
||||
.then(() => {
|
||||
removeToken()
|
||||
commit('SET_USER', null)
|
||||
uni.removeStorageSync('User')
|
||||
resolve()
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
Loading…
Reference in New Issue