From 16c854d55f8c441552daaad6936194d2bbb40771 Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 23 Jan 2026 16:17:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(router):=20=E6=B7=BB=E5=8A=A0=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E7=AE=A1=E7=90=86=E5=92=8C=E5=8F=91=E7=A5=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增基础管理模块路由配置,包含发票管理子页面 - 配置动态路由中的发票管理组件路径 - 移除监控模块的路由配置 - 修复路由数组结构,移除多余的逗号 --- openhis-ui-vue3/src/router/index.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index 1d933402..ca7cf1ac 100644 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -97,6 +97,22 @@ export const constantRoutes = [ // 动态路由,基于用户权限动态去加载 export const dynamicRoutes = [ + { + path: '/basicmanage', + component: Layout, + redirect: '/basicmanage/invoice-management', + name: 'BasicManage', + meta: { title: '基础管理', icon: 'component' }, + children: [ + { + path: 'invoice-management', + component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), + name: 'invoice-management', + meta: { title: '发票管理' } + } + ] + }, + { path: '/system/tenant-user', component: Layout, @@ -153,7 +169,6 @@ export const dynamicRoutes = [ } ] }, - { path: '/monitor', component: Layout, @@ -236,7 +251,7 @@ export const dynamicRoutes = [ meta: { title: '帮助中心'}, }, ], - } + }, ]; // 合并常量路由和动态路由,确保所有路由都能被访问