From 17792a8900da5a2dbdc32c1dd865a92c027a1ca6 Mon Sep 17 00:00:00 2001
From: ColorWhiteDeveloper <2632970487@qq.com>
Date: 星期一, 19 九月 2022 11:02:50 +0800
Subject: [PATCH] 系统框架重新搭建

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

diff --git a/src/router/index.js b/src/router/index.js
index 230ad53..bd70fcf 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3,20 +3,62 @@
 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: "createUser",
+            name: "createUser",
+            component: () => import('@/views/systemSetting/baseSetting/user/createUser')
+          },
+          {
+            path: 'userList',
+            name: 'userList',
+            component: () => import('@/views/systemSetting/baseSetting/user/userList')
+          }
+        ]
+      },
+      {
+        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 +76,7 @@
     name: "404",
     component: () => import('@/views/NotFound'),
   },
-  { path: '*', redirect: '/404' }
+  // { path: '*', redirect: '/404' }
 ]
 
 const router = new VueRouter({
@@ -42,5 +84,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