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