From 72a428b637b7f59ade5916124ab0bc71064aa84f Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期二, 20 九月 2022 15:33:10 +0800
Subject: [PATCH] 角色新增

---
 src/router/index.js |   77 +++++++++++++++++++++++++++++++++++---
 1 files changed, 71 insertions(+), 6 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 230ad53..06199da 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3,20 +3,82 @@
 Vue.use(VueRouter)
 const routes = [
   {
+    path:"/",
+    name:'index',
+    redirect:'/home'
+  },
+  {
     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: "operate",
+        name: 'operate',
+        component: () => import('@/views/operate/index.vue')
+      },
       {
         path: "video",
         name: 'video',
         component: () => import('@/views/video')
       },
       {
-        path:"createUser",
-        name:"createUser",
-        component:()=> import('@/views/systemSetting/baseSetting/user/createUser')
-      }
+        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')
+      },
     ]
   },
   {
@@ -34,7 +96,7 @@
     name: "404",
     component: () => import('@/views/NotFound'),
   },
-  { path: '*', redirect: '/404' }
+  // { path: '*', redirect: '/404' }
 ]
 
 const router = new VueRouter({
@@ -42,5 +104,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