From b0e2cbe46795e6675893ad48c660a0f0de23bc1e Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Mon, 4 Aug 2025 13:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4route=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/router/index.ts | 49 +---------------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/web/src/router/index.ts b/web/src/router/index.ts index 30b0e415..43c5c7c5 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -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[] = []; /** * 创建路由