xiaweibo 3 месяцев назад
Родитель
Сommit
4f1d89a610

+ 4 - 3
src/router/routers/production-safety-router/hiddenTroubleInvestigationAndGovernance.ts

@@ -1,9 +1,10 @@
    // === 隐患排查治理 ===
-   const hiddenTroubleInvestigationAndGovernanceRoutes = {
+   import { RouteComponent } from "vue-router";
+   const hiddenTroubleInvestigationAndGovernanceRoutes: RouteComponent[] = [{
     id: 9004,
     parentId: 9000,
     name: 'hiddenTroubleInvestigationAndGovernance',
-    path: 'hidden-trouble-investigation-and-governance', // 建议使用 kebab-case 保持一致性
+    path: 'hidden-trouble-investigation-and-governance',
     redirect: '/work-safety/hidden-trouble-investigation-and-governance/employee-report-hidden-trouble-management',
     meta: {
       title: '隐患排查治理',
@@ -267,6 +268,6 @@
         },
       },
     ],
-};
+}];
 
 export default hiddenTroubleInvestigationAndGovernanceRoutes;

+ 4 - 3
src/router/routers/production-safety-router/productionSafetySystem.ts

@@ -1,5 +1,6 @@
 // === 生产安全体系 ===
-const productionSafetySystemRoutes = {
+import { RouteComponent } from "vue-router";
+const productionSafetySystemRoutes: RouteComponent[] = [{
     id: 9003,
     parentId: 9000,
     name: 'productionSafetySystem',
@@ -209,7 +210,7 @@ const productionSafetySystemRoutes = {
           hidden: true,
           noCache: false,
         },
-      },
+      },  
       {
         id: 90027,
         parentId: 9002,
@@ -225,6 +226,6 @@ const productionSafetySystemRoutes = {
         },
       },
     ],
-};
+}];
 
 export default productionSafetySystemRoutes;

+ 3 - 2
src/router/routers/production-safety-router/safetyAssessment.ts

@@ -1,5 +1,6 @@
  // === 安全奖惩与考核 ===
- const safetyAssessmentRoutes = {
+ import { RouteComponent } from "vue-router";
+ const safetyAssessmentRoutes: RouteComponent[] = [{
     id: 9002,
     parentId: 9000,
     name: 'safetyAssessment',
@@ -155,6 +156,6 @@
         },
       },
     ],
-  };
+  }];
 
   export default safetyAssessmentRoutes;