feat: 仪表盘目录

This commit is contained in:
TsMask
2024-01-18 11:20:40 +08:00
parent acbcda39db
commit 0acb4109e5
3 changed files with 1002 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ const router = createRouter({
/**全局路由-后置守卫 */
router.afterEach((to, from, failure) => {
NProgress.done();
const title = to.meta?.title
const title = to.meta?.title;
// 设置标题
if (!failure && title) {
useAppStore().setTitle(to.meta.title);
@@ -143,7 +143,7 @@ router.beforeEach((to, from, next) => {
NProgress.start();
const token = getToken();
// 获取系统配置信息
const appStore =useAppStore()
const appStore = useAppStore();
if (!appStore.loginBackground) {
appStore.fnSysConf();
}