MaXueLi 1 päivä sitten
vanhempi
commit
eca136cb5d
2 muutettua tiedostoa jossa 1 lisäystä ja 24 poistoa
  1. 1 1
      ruoyi-ui/src/permission.js
  2. 0 23
      ruoyi-ui/src/router/index.js

+ 1 - 1
ruoyi-ui/src/permission.js

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

+ 0 - 23
ruoyi-ui/src/router/index.js

@@ -1,7 +1,6 @@
 import { createWebHistory, createRouter } from 'vue-router'
 /* Layout */
 import Layout from '@/layout'
-import yjLayout from '@/views/YuJing/index.vue'
 import LayoutEx from "@/layoutEx";
 
 /**
@@ -219,28 +218,6 @@ export const constantRoutes = [
       },
     ]
   },
-  // {
-  //   path: '/YuJing/index',
-  //   component: yjLayout,
-  //   hidden: true,
-  //   children: [
-  //     {
-  //       path: '/YuJing/shouye/index',
-  //       component: () => import('@/views/YuJing/shouye/index.vue'),
-  //       meta: { title: '首页', icon: 'Setting', affix: true }
-  //     },
-  //     {
-  //       path: '/YuJing/transaction/dutyRecord',
-  //       component: () => import('@/views/YuJing/transaction/dutyRecord.vue'),
-  //       meta: { title: '值班管理', icon: 'Setting', affix: true }
-  //     },
-  //     {
-  //       path: '/YuJing/water/monitorAlert',
-  //       component: () => import('@/views/YuJing/water/monitorAlert.vue'),
-  //       meta: { title: '水功能区', icon: 'Setting', affix: true }
-  //     },
-  //   ]
-  // },
   {
     path: '/user',
     component: Layout,