Merge pull request #294 from xiaohuanshu/patch-1

fix user logout error
This commit is contained in:
Ah jung authored and GitHub committed 2024-08-15 13:15:07 +08:00
commit 1ae5372396
1 file changed
+1 -1
+1 -1
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);
},