feat(projects): 动态路由根路由重定向只需取决于后端返回的路由首页

ISSUES CLOSED: \
This commit is contained in:
Soybean
2022-06-06 22:44:53 +08:00
parent ae99e57c52
commit 434ab1c560
5 changed files with 36 additions and 10 deletions

View File

@ -1,15 +1,18 @@
import { getLoginModuleRegExp } from '@/utils';
/** 根路由: / */
export const ROOT_ROUTE: AuthRoute.Route = {
name: 'root',
path: '/',
redirect: import.meta.env.VITE_ROUTE_HOME_PATH,
meta: {
title: 'Root'
}
};
/** 固定的路由 */
export const constantRoutes: AuthRoute.Route[] = [
{
name: 'root',
path: '/',
redirect: import.meta.env.VITE_ROUTE_HOME_PATH,
meta: {
title: 'Root'
}
},
ROOT_ROUTE,
{
name: 'login',
path: '/login',