mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-14 22:03:41 +08:00
feat(projects): 菜单数据及组件接入
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { store } from '@/store';
|
||||
import { removeToken } from '@/utils';
|
||||
import type { UserInfo } from '@/interface';
|
||||
|
||||
interface AuthState {
|
||||
@@ -30,7 +31,9 @@ const authStore = defineStore({
|
||||
actions: {
|
||||
/** 重置auth状态 */
|
||||
resetAuthState() {
|
||||
removeToken();
|
||||
this.$reset();
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user