mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 优化路由声明,添加路由模块导入,规范路相关文件夹
This commit is contained in:
@ -1,11 +1,8 @@
|
||||
import type { CustomRoute } from '@/interface';
|
||||
import { BasicLayout } from '@/layouts';
|
||||
import { setRouterCacheName } from '@/utils';
|
||||
import DashboardAnalysis from '@/views/dashboard/analysis/index.vue';
|
||||
import DashboardWorkbench from '@/views/dashboard/workbench/index.vue';
|
||||
import { ROUTE_HOME } from '../routes';
|
||||
import { routeName, routePath, routeTitle } from '../const';
|
||||
|
||||
setRouterCacheName(DashboardWorkbench, routeName('dashboard_workbench'));
|
||||
import { routeName, routePath, routeTitle } from '../constant';
|
||||
|
||||
const DASHBOARD: CustomRoute = {
|
||||
name: routeName('dashboard'),
|
||||
@ -14,10 +11,20 @@ const DASHBOARD: CustomRoute = {
|
||||
redirect: { name: routeName('dashboard_analysis') },
|
||||
meta: {
|
||||
title: routeTitle('dashboard'),
|
||||
icon: 'carbon:dashboard'
|
||||
icon: 'carbon:dashboard',
|
||||
order: 1
|
||||
},
|
||||
children: [
|
||||
ROUTE_HOME,
|
||||
{
|
||||
name: routeName('dashboard_analysis'),
|
||||
path: routePath('dashboard_analysis'),
|
||||
component: DashboardAnalysis,
|
||||
meta: {
|
||||
keepAlive: true,
|
||||
requiresAuth: true,
|
||||
title: routeTitle('dashboard_analysis')
|
||||
}
|
||||
},
|
||||
{
|
||||
name: routeName('dashboard_workbench'),
|
||||
path: routePath('dashboard_workbench'),
|
||||
|
Reference in New Issue
Block a user