From 6816f512f5f7ff04715eca870aa6bb2b3c7c3f3a Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期三, 12 二月 2025 17:14:06 +0800
Subject: [PATCH] 路由修改

---
 src/router/index.js |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index ff5cbc1..5b337ae 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -94,25 +94,28 @@
 export const dynamicRoutes = [
   {
     // 鍘熸潗鏂欐姤妫�
-    path: '/business/rawMaterialInspection',
-    component: Layout,
-  },
-  {
-    // 鍘熸潗鏂欐楠屼笅鍗�
-    path: '/business/materialOrder',
+    path: '/rawMaterialInspection',
     component: Layout,
     hidden: true,
+  },
+  {
+    // 鍘熸潗鏂欎笅鍗�
+    path: '/materialOrder',
+    component: Layout,
+    hidden: true,
+    permissions: ['business:order'],
     children: [
       {
-        // 閾滃崟涓濅笅鍗�
-        path: '/customsInspection',
+        // 閾滄潗鏂欎笅鍗�
+        path: 'customsInspection',
         component: () => import('@/views/business/materialOrder/customsInspection'),
-        name: '閾滃崟涓濅笅鍗�',
-        meta: { title: '閾滃崟涓濅笅鍗�', activeMenu: '/business/materialOrder' }
+        name: 'customsInspection',
+        meta: { title: '閾滄潗鏂欎笅鍗�', activeMenu: '/business/materialOrder' }
       }
     ]
   },
   {
+    // 鐢ㄦ埛绠$悊
     path: '/system/user-auth',
     component: Layout,
     hidden: true,
@@ -127,6 +130,7 @@
     ]
   },
   {
+    // 瑙掕壊绠$悊
     path: '/system/role-auth',
     component: Layout,
     hidden: true,
@@ -141,6 +145,7 @@
     ]
   },
   {
+    // 鏁版嵁瀛楀吀
     path: '/system/dict-data',
     component: Layout,
     hidden: true,
@@ -155,6 +160,13 @@
     ]
   },
   {
+    // 鏁版嵁瀛楀吀
+    path: '/customer',
+    component: Layout,
+    hidden: true,
+    permissions: ['customer:edit'],
+  },
+  {
     path: '/monitor/job-log',
     component: Layout,
     hidden: true,

--
Gitblit v1.9.3