Browse Source

fix: logout err out

master
wangxiang 2 years ago
parent
commit
4a69fe45d8
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 4
      src/store/modules/user.ts

4
src/store/modules/user.ts

@ -177,7 +177,9 @@ export const useUserStore = defineStore({
}, },
/** 登出 */ /** 登出 */
async logout(goLogin = false) { async logout(goLogin = false) {
await logout(); try {
await logout();
} catch(e) { console.warn(e); }
this.resetState(); this.resetState();
this.setAccessToken(''); this.setAccessToken('');
this.setRefreshToken(''); this.setRefreshToken('');

Loading…
Cancel
Save