refactor(projects): 路由文件夹拆分模块,代码重构
This commit is contained in:
18
src/router/routes/routeHome.ts
Normal file
18
src/router/routes/routeHome.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import type { CustomRoute } from '@/interface';
|
||||
import { EnumRoutePath, EnumRouteTitle } from '@/enum';
|
||||
import { RouteNameMap } from '../helpers';
|
||||
import { DashboardAnalysis } from '../components';
|
||||
|
||||
/** 路由首页 */
|
||||
const ROUTE_HOME: CustomRoute = {
|
||||
name: RouteNameMap.get('dashboard_analysis'),
|
||||
path: EnumRoutePath.dashboard_analysis,
|
||||
component: DashboardAnalysis,
|
||||
meta: {
|
||||
keepAlive: true,
|
||||
requiresAuth: true,
|
||||
title: EnumRouteTitle.dashboard_analysis
|
||||
}
|
||||
};
|
||||
|
||||
export default ROUTE_HOME;
|
||||
Reference in New Issue
Block a user