From edbe2964e959a334e1d9e12717bf854d89d25c92 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 15 六月 2022 21:01:26 +0800
Subject: [PATCH] 1.cookie带到接口上

---
 src/router/index.js |  132 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 129 insertions(+), 3 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 591df6c..a40dae4 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -41,7 +41,133 @@
     path: '/404',
     component: () => import('@/views/404'),
     hidden: true
-  }
+  },
+  {
+    path: '/redirect',
+    component: Layout,
+    hidden: true,
+    children: [
+      {
+        path: '/redirect/:path(.*)',
+        component: () => import('@/views/redirect/index')
+      }
+    ]
+  },
+  {
+    path: '/',
+    component: Layout,
+    redirect: '/index',
+    name: '绯荤粺棣栭〉',
+    children: [{
+      path: 'index',
+      name: 'index',
+      component: () => import('@/views/xtsy/index'),
+      meta: { title: '绯荤粺棣栭〉', icon: 'dashboard', affix: true }
+    }]
+  },
+  {
+    path: '/jcsz',
+    component: Layout,
+    redirect: '/jcsz/zzjg',
+    name: '鍩虹璁剧疆',
+    meta: { title: '鍩虹璁剧疆', icon: 'el-icon-setting' },
+    children: [
+      {
+        path: 'zzjg',
+        name: '缁勭粐鏋舵瀯',
+        component: () => import('@/views/jcsz/zzjg'),
+        meta: { title: '缁勭粐鏋舵瀯', icon: '' }
+      }, {
+        path: 'jsqd',
+        name: '瑙掕壊娓呭崟',
+        component: () => import('@/views/jcsz/jsqd'),
+        meta: { title: '瑙掕壊娓呭崟', icon: '' }
+      }, {
+        path: 'yhqd',
+        name: '鐢ㄦ埛娓呭崟',
+        component: () => import('@/views/jcsz/yhqd'),
+        meta: { title: '鐢ㄦ埛娓呭崟', icon: '' }
+      }, {
+        path: 'wldw',
+        name: '寰�鏉ュ崟浣�',
+        component: () => import('@/views/jcsz/wldw'),
+        meta: { title: '寰�鏉ュ崟浣�', icon: '' }
+      }
+    ]
+  }, {
+    path: '/sbgl',
+    component: Layout,
+    redirect: '/sbgl/sbqd',
+    name: '璁惧绠$悊',
+    meta: { title: '璁惧绠$悊', icon: 'el-icon-setting' },
+    children: [
+      {
+        path: 'sbqd',
+        name: '璁惧娓呭崟',
+        component: () => import('@/views/sbgl/sbqd'),
+        meta: { title: '璁惧娓呭崟', icon: '' }
+      }
+      // {
+      //   path: 'sblxsz',
+      //   name: '瑙掕壊娓呭崟',
+      //   component: () => import('@/views/jcsz/jsqd'),
+      //   meta: { title: '瑙掕壊娓呭崟', icon: '' }
+      // },
+    ]
+  }, {
+    path: '/wlgl',
+    component: Layout,
+    redirect: '/wlgl/ckdy',
+    name: '鐗╂枡绠$悊',
+    meta: { title: '鐗╂枡绠$悊', icon: 'el-icon-setting' },
+    children: [
+      {
+        path: 'ckdy',
+        name: '浠撳簱瀹氫箟',
+        component: () => import('@/views/wlgl/ckdy'),
+        meta: { title: '浠撳簱瀹氫箟', icon: '' }
+      },
+      {
+        path: 'kwdy',
+        name: '搴撲綅瀹氫箟',
+        component: () => import('@/views/wlgl/kwdy'),
+        meta: { title: '搴撲綅瀹氫箟', icon: '' }
+      }
+    ]
+  },
+  {
+    path: '/zzmx',
+    component: Layout,
+    redirect: '/zzmx/gylx',
+    name: '鍒堕�犳ā鍨�',
+    meta: { title: '鍒堕�犳ā鍨�', icon: 'el-icon-s-help' },
+    children: [
+      {
+        path: 'gylx',
+        name: '鍏泭璺嚎',
+        component: () => import('@/views/zzmx/gylx'),
+        meta: { title: '鍏泭璺嚎', icon: '' }
+      },
+      {
+        path: 'jpgj',
+        name: '鑺傛媿宸ヤ环',
+        component: () => import('@/views/zzmx/jpgj'),
+        meta: { title: '鑺傛媿宸ヤ环', icon: '' }
+      }, {
+        path: 'wllx',
+        name: '鐗╂枡绫诲瀷',
+        component: () => import('@/views/zzmx/wllx'),
+        meta: { title: '鐗╂枡绫诲瀷', icon: '' }
+      },
+      {
+        path: 'chda',
+        name: '瀛樿揣妗f',
+        component: () => import('@/views/zzmx/chda'),
+        meta: { title: '瀛樿揣妗f', icon: '' }
+      }
+    ]
+  },
+  { path: '*', redirect: '/404', hidden: true }
 ]
 
 // export const constantRoutesxxxxxx = [
@@ -134,8 +260,8 @@
 //     ]
 //   },
 //
-//   // 404 page must be placed at the end !!!
-//   { path: '*', redirect: '/404', hidden: true }
+// 404 page must be placed at the end !!!
+// , {path: '*', redirect: '/404', hidden: true}
 // ]
 
 const createRouter = () => new Router({

--
Gitblit v1.9.3