3
0
Fork 0

fix(logout): 登出清理缓存

This commit is contained in:
woody 2025-08-25 09:24:03 +08:00
parent 9f376b78dc
commit d6becba570
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ const actions = {
logout(state.token) logout(state.token)
.then(() => { .then(() => {
removeToken() removeToken()
commit('SET_USER', null)
uni.removeStorageSync('User')
resolve() resolve()
}) })
.catch(error => { .catch(error => {