| | |
| | | Vue.use(VueRouter) |
| | | const routes = [ |
| | | { |
| | | path:"/", |
| | | name:'index', |
| | | redirect:'/home' |
| | | path: "/", |
| | | name: 'index', |
| | | redirect: '/home' |
| | | }, |
| | | { |
| | | path: '/home', |
| | |
| | | component: () => import('@/views/systemSetting/baseSetting/user') |
| | | }, |
| | | { |
| | | path:'role', |
| | | name:'role', |
| | | path: 'role', |
| | | name: 'role', |
| | | component: () => import('@/views/systemSetting/baseSetting/role') |
| | | }, |
| | | { |
| | | path:'authority', |
| | | name:'authority', |
| | | path: 'authority', |
| | | name: 'authority', |
| | | component: () => import('@/views/systemSetting/baseSetting/authority') |
| | | }, |
| | | { |
| | | path:'department', |
| | | name:'department', |
| | | path: 'department', |
| | | name: 'department', |
| | | component: () => import('@/views/systemSetting/baseSetting/department') |
| | | }, |
| | | { |
| | | path:'portalSetting', |
| | | name:'portalSetting', |
| | | path: 'portalSetting', |
| | | name: 'portalSetting', |
| | | component: () => import('@/views/systemSetting/platform/portalSetting') |
| | | }, |
| | | { |
| | | path:'otherInterface', |
| | | name:'otherInterface', |
| | | path: 'otherInterface', |
| | | name: 'otherInterface', |
| | | component: () => import('@/views/systemSetting/platform/otherInterface') |
| | | }, |
| | | { |
| | | path:'mySetting', |
| | | name:'mySetting', |
| | | path: 'mySetting', |
| | | name: 'mySetting', |
| | | component: () => import('@/views/systemSetting/platform/mySetting') |
| | | } |
| | | ] |
| | |
| | | path: "operate", |
| | | name: 'operate', |
| | | component: () => import('@/views/operate'), |
| | | children:[ |
| | | children: [ |
| | | { |
| | | path:'baseSetting', |
| | | name:'baseSetting', |
| | | component:()=> import('@/views/operate/baseSetting'), |
| | | path: 'baseSetting', |
| | | name: 'baseSetting', |
| | | component: () => import('@/views/operate/baseSetting'), |
| | | }, |
| | | { |
| | | path:'casepool', |
| | | name:'casepool', |
| | | component:() => import('@/views/operate/disposal/casepool') |
| | | path: 'casepool', |
| | | name: 'casepool', |
| | | component: () => import('@/views/operate/disposal/casepool'), |
| | | children: [ |
| | | { |
| | | path: 'escalation', |
| | | name: 'escalation', |
| | | component: () => import('@/views/operate/disposal/escalation'), |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | |
| | | }) |
| | | const originalPush = router.push |
| | | router.push = function push(location) { |
| | | return originalPush.call(this, location).catch(err => err); |
| | | return originalPush.call(this, location).catch(err => err); |
| | | } |
| | | export default router |