From 6237280bed0832babd48694e3d3598076fa1c467 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期四, 22 九月 2022 17:53:09 +0800 Subject: [PATCH] 搭建信息失败提示页面 --- src/router/index.js | 103 +++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 82 insertions(+), 21 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7d3de8d..1708063 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,9 +3,9 @@ Vue.use(VueRouter) const routes = [ { - path:"/", - name:'index', - redirect:'/home' + path: "/", + name: 'index', + redirect: '/home' }, { path: '/home', @@ -18,36 +18,92 @@ component: () => import('@/views/systemSetting'), children: [ { - path: "createUser", - name: "createUser", - component: () => import('@/views/systemSetting/baseSetting/user/createUser') + path: "user", + name: "user", + component: () => import('@/views/systemSetting/baseSetting/user') }, { - path: 'userList', - name: 'userList', - component: () => import('@/views/systemSetting/baseSetting/user/userList') - }, - { - 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', + component: () => import('@/views/systemSetting/platform/portalSetting') + }, + { + path: 'otherInterface', + name: 'otherInterface', + component: () => import('@/views/systemSetting/platform/otherInterface') + }, + { + path: 'mySetting', + name: 'mySetting', + component: () => import('@/views/systemSetting/platform/mySetting') } ] }, { path: "operate", name: 'operate', - component: () => import('@/views/operate/index.vue') + component: () => import('@/views/operate'), + children: [ + { + path: 'baseSetting', + name: 'baseSetting', + component: () => import('@/views/operate/baseSetting'), + }, + { + path: 'casepool', + name: 'casepool', + component: () => import('@/views/operate/disposal'), + children: [ + { + path: 'pool', + name: 'pool', + component: () => import('@/views/operate/disposal/casepool/pool'), + }, + { + path: 'escalation', + name: 'escalation', + component: () => import('@/views/operate/disposal/casepool/escalation'), + }, + { + path: 'dispatch', + name: 'dispatch', + component: () => import('@/views/operate/disposal/casepool/dispatch'), + }, + { + path: 'notDeal', + name: 'notDeal', + component: () => import('@/views/operate/disposal/casepool/notDeal'), + }, + ] + }, + { + path: "fivepack", + name: 'fivepack', + component: () => import('@/views/operate/fivepack'), + children: [ + { + path: "shop", + name: 'shop', + component: () => import('@/views/operate/fivepack/shop'), + } + ] + } + ] }, { path: "video", @@ -89,9 +145,14 @@ { path: '/404', name: "404", - component: () => import('@/views/NotFound'), + component: () => import('@/views/info/NotFound'), }, - // { path: '*', redirect: '/404' } + { + path: '/fail', + name: "/fail", + component: () => import('@/views/info/Fail'), + }, + { path: '*', redirect: '/404' } ] const router = new VueRouter({ @@ -101,6 +162,6 @@ }) 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 -- Gitblit v1.8.0