From 9b0a40a9b2918dd0e92161edaff4a3f61b510141 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 05 三月 2025 10:32:35 +0800
Subject: [PATCH] 优化下单

---
 src/router/index.js |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 298860f..180cdb2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -101,17 +101,22 @@
     children: [
       {
         // 鍘熸潗鏂欎笅鍗�
-        path: 'customsInspection',
-        component: () => import('@/views/business/materialOrder/customsInspection'),
-        name: 'customsInspection',
-        meta: { title: '鍘熸潗鏂欎笅鍗曡鎯�', activeMenu: '/business/materialOrder' }
+        path: "customsInspection",
+        component: () =>
+          import("@/views/business/materialOrder/customsInspection"),
+        name: "CustomsInspection",
+        meta: {
+          title: "鍘熸潗鏂欎笅鍗曡鎯�",
+          activeMenu: "/business/materialOrder",
+          keepAlive: true
+        },
       },
       {
         // 閾滄潗鏂欎笅鍗�
-        path: 'copperOrder',
-        component: () => import('@/views/business/materialOrder/copperOrder'),
-        name: 'copperOrder',
-        meta: { title: '閾滄潗鏂欎笅鍗�', activeMenu: '/business/materialOrder' }
+        path: "copperOrder",
+        component: () => import("@/views/business/materialOrder/copperOrder"),
+        name: "CopperOrder",
+        meta: { title: "閾滄潗鏂欎笅鍗�", activeMenu: "/business/materialOrder",keepAlive: true },
       },
     ],
   },
@@ -127,8 +132,8 @@
         path: "add",
         component: () =>
           import("@/views/business/productOrder/components/add.vue"),
-        name: "add",
-        meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/materialOrder" },
+        name: "Add",
+        meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/materialOrder",keepAlive: true },
       },
     ],
   },
@@ -144,7 +149,7 @@
         path: "inspection",
         component: () => import("@/views/business/inspectionTask/inspection"),
         name: "inspection",
-        meta: { title: "妫�楠屽崟璇︽儏", activeMenu: "/business/inspectionTask" },
+        meta: { title: "妫�楠屽崟璇︽儏", activeMenu: "/business/inspectionTask", keepAlive: false },
       },
     ],
   },

--
Gitblit v1.9.3