fix user logout error

This commit is contained in:
xiaohuanshu
2024-08-13 17:44:24 +08:00
committed by GitHub
parent 84f55a8116
commit 0bbc29023b

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);
},