feat(projects): 菜单数据及组件接入

This commit is contained in:
Soybean
2021-09-15 07:35:38 +08:00
parent 57e00e6417
commit 3226a724be
25 changed files with 361 additions and 95 deletions

View File

@ -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();
}
}
});