mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +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