用户退出清除token
This commit is contained in:
parent
8bd12a9f2f
commit
df37262b5d
@ -33,6 +33,8 @@ const mutations = {
|
||||
state.token = null;
|
||||
Cache.clear('USER_INFO')
|
||||
Cache.clear('TOKEN')
|
||||
|
||||
uni.clearStorageSync()
|
||||
},
|
||||
UPDATE_USERINFO(state, data) {
|
||||
let time = res.data.result.expires_time - Cache.time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user