用户退出清除token

This commit is contained in:
jia 2023-11-25 15:38:41 +08:00
parent 8bd12a9f2f
commit df37262b5d

View File

@ -33,6 +33,8 @@ const mutations = {
state.token = null; state.token = null;
Cache.clear('USER_INFO') Cache.clear('USER_INFO')
Cache.clear('TOKEN') Cache.clear('TOKEN')
uni.clearStorageSync()
}, },
UPDATE_USERINFO(state, data) { UPDATE_USERINFO(state, data) {
let time = res.data.result.expires_time - Cache.time(); let time = res.data.result.expires_time - Cache.time();