Skip to content

Commit

Permalink
Merge pull request #294 from xiaohuanshu/patch-1
Browse files Browse the repository at this point in the history
fix user logout error
  • Loading branch information
jekip authored Aug 15, 2024
2 parents 84f55a8 + 0bbc290 commit 1ae5372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down

0 comments on commit 1ae5372

Please sign in to comment.