提交route文件

This commit is contained in:
zlwu committed 2025-08-04 13:11:40 +08:00
1 parent e5029688e5
commit b0e2cbe467
1 file changed
+1 -48
+1 -48
View File
@@ -89,57 +89,10 @@ export const constantRoutes: RouteRecordRaw[] = [
}
]
},
{
path: '/xljk',
component: Layout,
hidden: true,
children: [
{
path: 'evaluation/detail/:id',
component: () => import('@/views/xljk/evaluation/detail.vue'),
name: 'XljkEvaluationDetail',
meta: { title: '心理健康测评详情', icon: 'form', activeMenu: '/xljk/evaluation', noCache: true }
},
{
path: 'evaluation/add',
component: () => import('@/views/xljk/evaluation/add.vue'),
name: 'XljkEvaluationAdd',
meta: { title: '新增心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation', noCache: true }
},
{
path: 'evaluation/edit/:id',
component: () => import('@/views/xljk/evaluation/edit.vue'),
name: 'XljkEvaluationEdit',
meta: { title: '编辑心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation', noCache: true }
},
{
path: 'evaluation/fill/:id',
component: () => import('@/views/xljk/evaluation/fill.vue'),
name: 'XljkEvaluationFill',
meta: { title: '填写心理健康测评', icon: 'form', activeMenu: '/xljk/evaluation', noCache: true }
}
]
}
];
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes: RouteRecordRaw[] = [
{
path: '/xljk',
component: Layout,
name: 'Xljk',
meta: { title: '学工管理', icon: 'education' },
children: [
{
path: 'evaluation',
component: () => import('@/views/xljk/evaluation/index.vue'),
name: 'XljkEvaluation',
meta: { title: '心理健康测评', icon: 'heart', permissions: ['xljk:evaluation:list'], noCache: true }
}
]
}
];
export const dynamicRoutes: RouteRecordRaw[] = [];
/**
* 创建路由