mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 05:32:26 +08:00
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user