Skip to content

Commit

Permalink
fix user logout error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuanshu authored Aug 13, 2024
1 parent 84f55a8 commit 0bbc290
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 0bbc290

Please sign in to comment.