From ab36c0c3dbaa95fa3f94268cfc8b8bb7aae22b80 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期四, 22 九月 2022 10:44:13 +0800
Subject: [PATCH] 新增案件池问题登记
---
src/router/index.js | 141 +++++++++++++++++++++++++++++++++++++---------
1 files changed, 112 insertions(+), 29 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index c7ed783..c6f1fe1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,46 +1,126 @@
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
-
const routes = [
- // {
- // path: '/',
- // component: Layout,
- // redirect: '/home',
- // children: [{
- // path: 'home',
- // name: 'home',
- // component: () => import('@/views/layout'),
- // }]
- // },
{
- path:'/home',
- name:'home',
- component:()=>import('@/views/layout'),
- children:[
- {
- path:"video",
- name:'video',
- component:()=>import('@/views/video')
- }
- ]
+ path: "/",
+ name: 'index',
+ redirect: '/home'
},
{
- path:'/login',
- name:'login',
- component:()=>import('@/views/login')
+ path: '/home',
+ name: 'home',
+ component: () => import('@/views/layout'),
+ children: [
+ {
+ path: 'system',
+ name: 'system',
+ component: () => import('@/views/systemSetting'),
+ children: [
+ {
+ path: "user",
+ name: "user",
+ component: () => import('@/views/systemSetting/baseSetting/user')
+ },
+ {
+ path: 'role',
+ name: 'role',
+ component: () => import('@/views/systemSetting/baseSetting/role')
+ },
+ {
+ path: 'authority',
+ name: 'authority',
+ component: () => import('@/views/systemSetting/baseSetting/authority')
+ },
+ {
+ 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'),
+ children: [
+ {
+ path: 'baseSetting',
+ name: 'baseSetting',
+ component: () => import('@/views/operate/baseSetting'),
+ },
+ {
+ path: 'casepool',
+ name: 'casepool',
+ component: () => import('@/views/operate/disposal/casepool'),
+ children: [
+ {
+ path: 'escalation',
+ name: 'escalation',
+ component: () => import('@/views/operate/disposal/escalation'),
+ }
+ ]
+ }
+ ]
+ },
+ {
+ path: "video",
+ name: 'video',
+ component: () => import('@/views/video')
+ },
+ {
+ path: "lampblack",
+ name: 'lampblack',
+ component: () => import('@/views/lampblack')
+ },
+ {
+ path: "law",
+ name: 'law',
+ component: () => import('@/views/law')
+ },
+ {
+ path: "intellect",
+ name: 'intellect',
+ component: () => import('@/views/intellect')
+ },
+ {
+ path: "info",
+ name: 'info',
+ component: () => import('@/views/info')
+ },
+ ]
+ },
+ {
+ path: '/login',
+ name: 'login',
+ component: () => import('@/views/login')
},
{
path: '/screen',
name: 'screen',
- component: ()=>import('@/views/screen')
- },
+ component: () => import('@/views/screen')
+ },
{
path: '/404',
- name:"404",
+ name: "404",
component: () => import('@/views/NotFound'),
},
- { path: '*', redirect: '/404' }
+ // { path: '*', redirect: '/404' }
]
const router = new VueRouter({
@@ -48,5 +128,8 @@
base: process.env.BASE_URL,
routes
})
-
+const originalPush = router.push
+router.push = function push(location) {
+ return originalPush.call(this, location).catch(err => err);
+}
export default router
--
Gitblit v1.8.0