| | |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/', |
| | | path: '', |
| | | component: Layout, |
| | | redirect: '/index', |
| | | redirect: 'index', |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | |
| | | ] |
| | | }, |
| | | // 样机标签打印路由 |
| | | { |
| | | path: '/main/bq', |
| | | component: Layout, |
| | | children: [ |
| | | { |
| | | path: 'prototypeLabelPrinting', |
| | | component: () => import('@/views/main/bq/prototypeLabelPrinting'), |
| | | name: 'PrototypeLabelPrinting', |
| | | meta: { title: '样机标签打印', icon: 'printer' } |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // path: '/main/bq', |
| | | // component: Layout, |
| | | // children: [ |
| | | // { |
| | | // path: 'prototypeLabelPrinting', |
| | | // component: () => import('@/views/main/bq/prototypeLabelPrinting'), |
| | | // name: 'PrototypeLabelPrinting', |
| | | // meta: { title: '样机标签打印', icon: 'printer' } |
| | | // } |
| | | // ] |
| | | // }, |
| | | // 匹配所有路径 |
| | | { |
| | | path: '*', |
| | | redirect: '/404', |
| | | hidden: true |
| | | } |
| | | // { |
| | | // path: '*', |
| | | // redirect: '/404', |
| | | // hidden: true |
| | | // } |
| | | ] |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |