| | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | qywechatRouter, |
| | | |
| | | // 网络诊断路由 |
| | | { |
| | | path: "/system/diag", |
| | | component: Layout, |
| | | redirect: "/system/diag/ocrConnection", |
| | | name: "Diag", |
| | | meta: { |
| | | title: "网络诊断", |
| | | icon: "link", |
| | | permissions: ["system:diag:view"] |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "ocrConnection", |
| | | component: () => import("@/views/system/diag/ocrConnection"), |
| | | name: "OCRConnectionDiag", |
| | | meta: { |
| | | title: "OCR连接诊断", |
| | | icon: "monitor", |
| | | permissions: ["system:diag:ocr"] |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | // 医院分词测试路由 |
| | | { |
| | | path: "/system/hospital", |
| | | component: Layout, |
| | | redirect: "/system/hospital/tokenizer", |
| | | name: "Hospital", |
| | | meta: { |
| | | title: "医院管理", |
| | | icon: "hospital", |
| | | permissions: ["system:hospital:view"] |
| | | }, |
| | | children: [ |
| | | { |
| | | path: "tokenizer", |
| | | component: () => import("@/views/system/hospital/tokenizer"), |
| | | name: "HospitalTokenizer", |
| | | meta: { |
| | | title: "医院分词测试", |
| | | icon: "search", |
| | | permissions: ["system:hospital:tokenizer"] |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/system/user-auth', |
| | | component: Layout, |