mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-03-01 00:23:11 +08:00
fix user logout error
This commit is contained in:
1 parent
84f55a8116
commit
0bbc29023b
1 file changed
+1
-1
@@ -93,7 +93,7 @@ export const useUserStore = defineStore({
|
|||||||
// 登出
|
// 登出
|
||||||
async logout() {
|
async logout() {
|
||||||
this.setPermissions([]);
|
this.setPermissions([]);
|
||||||
this.setUserInfo({ name: '', email: '' });
|
this.setUserInfo({ username: '', email: '' });
|
||||||
storage.remove(ACCESS_TOKEN);
|
storage.remove(ACCESS_TOKEN);
|
||||||
storage.remove(CURRENT_USER);
|
storage.remove(CURRENT_USER);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user