Merge pull request #294 from xiaohuanshu/patch-1

fix user logout error
This commit is contained in:
Ah jung
2024-08-15 13:15:07 +08:00
committed by GitHub

View File

@@ -93,7 +93,7 @@ export const useUserStore = defineStore({
// 登出
async logout() {
this.setPermissions([]);
this.setUserInfo({ name: '', email: '' });
this.setUserInfo({ username: '', email: '' });
storage.remove(ACCESS_TOKEN);
storage.remove(CURRENT_USER);
},