feat(router): 添加基础管理和发票管理路由配置

- 新增基础管理模块路由配置,包含发票管理子页面
- 配置动态路由中的发票管理组件路径
- 移除监控模块的路由配置
- 修复路由数组结构,移除多余的逗号
This commit is contained in:
2026-01-23 16:17:00 +08:00
parent 73617e1b0f
commit 16c854d55f

View File

@@ -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: '帮助中心'},
},
],
}
},
];
// 合并常量路由和动态路由,确保所有路由都能被访问