sys5923812@126.com пре 1 месец
родитељ
комит
93cbc8d12a
3 измењених фајлова са 8 додато и 3 уклоњено
  1. 1 1
      src/permission.js
  2. 6 0
      src/router/index.js
  3. 1 2
      src/views/login.vue

+ 1 - 1
src/permission.js

@@ -11,7 +11,7 @@ import usePermissionStore from '@/store/modules/permission'
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/register']
+const whiteList = ['/login', '/register','/xjc_index']
 
 const isWhiteList = (path) => {
   return whiteList.some(pattern => isPathMatch(pattern, path))

+ 6 - 0
src/router/index.js

@@ -10,6 +10,12 @@ import router_plan from '@/router/router_plan.js'
 // 公共路由
 export const constantRoutes = [
     {
+        path : '/xjc_index',
+        component: () => import('@/layout/index'),
+    },
+
+
+    {
         path: '/redirect',
         component: Layout,
         hidden: true,

+ 1 - 2
src/views/login.vue

@@ -127,9 +127,8 @@
         })
 
     }
-
     function handleLogin3() {
-        router.push({path: "/index"})
+        router.push({path: "/xjc_index"})
     }
 
     handleLogin3()