feat: 开站目录变更quick-start

This commit is contained in:
TsMask
2024-04-24 15:57:03 +08:00
parent f8b1b1f6c3
commit e6a439faea

View File

@@ -88,10 +88,10 @@ const constantRoutes: RouteRecordRaw[] = [
component: () => import('@/views/tool/help/index.vue'),
},
{
path: '/quick-build',
name: 'QuickBuild',
meta: { title: 'router.quickBuild' },
component: () => import('@/views/system/quick-build/index.vue'),
path: '/quick-start',
name: 'QuickStart',
meta: { title: 'router.quickStart' },
component: () => import('@/views/system/quick-start/index.vue'),
},
{
path: '/redirect',
@@ -147,7 +147,7 @@ const WHITE_LIST: string[] = [
'/auth-redirect',
'/help',
'/register',
'/quick-build',
'/quick-start',
];
/**全局路由-前置守卫 */
@@ -161,8 +161,8 @@ router.beforeEach(async (to, from, next) => {
}
console.log(to.path);
// 需要系统引导跳转
if (appStore.sysGuide && to.path !== '/quick-build') {
next({ name: 'QuickBuild' });
if (appStore.sysGuide && to.path !== '/quick-start') {
next({ name: 'QuickStart' });
}
const token = getToken();