feat: 新增系统配置

This commit is contained in:
Yoofff
2024-04-14 13:56:40 +00:00
committed by Charles7c
parent 7e093e15f9
commit d2af75fbf9
12 changed files with 547 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
import router from '@/router'
import { useUserStore, useRouteStore } from '@/stores'
import {useUserStore, useRouteStore, useAppStore} from '@/stores'
import { getToken } from '@/utils/auth'
import { isHttp } from '@/utils/validate'
@@ -15,6 +15,8 @@ export const resetHasRouteFlag = () => {
router.beforeEach(async (to, from, next) => {
const userStore = useUserStore()
const routeStore = useRouteStore()
const appStore = useAppStore();
appStore.initWebConfig();
// 判断该用户是否登录
if (getToken()) {