| | |
| | | const staticRoutes = [ |
| | | // 不需要登录就能访问的路由示例 |
| | | // { |
| | | // path: '/welcome', |
| | | // name: 'WelcomeStatic', |
| | | // component: () => import('@views/dashboard/console/index.vue'), |
| | | // meta: { title: 'menus.dashboard.title' } |
| | | // }, |
| | | { |
| | | path: '/dashboard', |
| | | component: () => import('@views/index/index.vue'), |
| | |
| | | icon: 'ri:home-smile-2-line', |
| | | keepAlive: false, |
| | | fixedTab: true |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/basic-info', |
| | | component: () => import('@views/index/index.vue'), |
| | | name: 'BasicInfo', |
| | | meta: { title: 'menu.basicInfo' }, |
| | | children: [ |
| | | { |
| | | path: 'wh-mat', |
| | | name: 'WhMat', |
| | | component: () => import('@views/basic-info/wh-mat/index.vue'), |
| | | meta: { |
| | | title: 'menu.matnr', |
| | | icon: 'ri:bill-line', |
| | | keepAlive: false |
| | | } |
| | | }, |
| | | { |
| | | path: 'matnr-group', |
| | | name: 'MatnrGroup', |
| | | component: () => import('@views/basic-info/matnr-group/index.vue'), |
| | | meta: { |
| | | title: 'menu.matnrGroup', |
| | | icon: 'ri:git-branch-line', |
| | | keepAlive: false |
| | | } |
| | | }, |
| | | { |
| | | path: 'bas-container', |
| | | name: 'BasContainer', |
| | | component: () => import('@views/basic-info/bas-container/index.vue'), |
| | | meta: { |
| | | title: 'menu.basContainer', |
| | | icon: 'ri:archive-line', |
| | | keepAlive: false |
| | | } |
| | | }, |
| | | { |
| | | path: 'warehouse', |
| | | name: 'Warehouse', |
| | | component: () => import('@views/basic-info/warehouse/index.vue'), |
| | | meta: { |
| | | title: 'menu.warehouse', |
| | | icon: 'ri:store-2-line', |
| | | keepAlive: false |
| | | } |
| | | }, |
| | | { |
| | | path: 'warehouse-areas', |
| | | name: 'WarehouseAreas', |
| | | component: () => import('@views/basic-info/warehouse-areas/index.vue'), |
| | | meta: { |
| | | title: 'menu.warehouseAreas', |
| | | icon: 'ri:layout-grid-line', |
| | | keepAlive: false |
| | | } |
| | | }, |
| | | { |
| | | path: 'loc', |
| | | name: 'Loc', |
| | | component: () => import('@views/basic-info/loc/index.vue'), |
| | | meta: { |
| | | title: 'menu.loc', |
| | | icon: 'ri:map-pin-2-line', |
| | | keepAlive: false |
| | | } |
| | | } |
| | | ] |
| | |
| | | meta: { title: '403', isHideTab: true } |
| | | }, |
| | | { |
| | | path: '/:pathMatch(.*)*', |
| | | name: 'Exception404', |
| | | component: () => import('@views/exception/404/index.vue'), |
| | | meta: { title: '404', isHideTab: true } |
| | | }, |
| | | { |
| | | path: '/500', |
| | | name: 'Exception500', |
| | | component: () => import('@views/exception/500/index.vue'), |
| | |
| | | name: 'Outside', |
| | | meta: { title: 'menus.outside.title' }, |
| | | children: [ |
| | | // iframe 内嵌页面 |
| | | { |
| | | path: '/outside/iframe/:path', |
| | | name: 'Iframe', |
| | |
| | | meta: { title: 'iframe' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/:pathMatch(.*)*', |
| | | name: 'Exception404', |
| | | component: () => import('@views/exception/404/index.vue'), |
| | | meta: { title: '404', isHideTab: true } |
| | | } |
| | | ] |
| | | |
| | | export { staticRoutes } |