feat: 初始访问时跳转开站引导页面

This commit is contained in:
TsMask committed 2024-04-24 15:27:23 +08:00
1 parent e351960229
commit 1085fa16aa
3 files changed
+14 -15

No files matched your search

+8 -5
View File
@@ -153,16 +153,19 @@ const WHITE_LIST: string[] = [
/**全局路由-前置守卫 */
router.beforeEach(async (to, from, next) => {
NProgress.start();
const token = getToken();
// 获取系统配置信息
const appStore = useAppStore();
if (!appStore.loginBackground) {
await appStore.fnSysConf();
console.log(to.path);
if (appStore.sysGuide && to.path !== '/quick-build') {
next({ name: 'QuickBuild' });
}
}
console.log(to.path);
// 需要系统引导跳转
if (appStore.sysGuide && to.path !== '/quick-build') {
next({ name: 'QuickBuild' });
}
const token = getToken();
// 没有token
if (!token) {