Quellcode durchsuchen

综合可视化

chenrui  vor 2 Jahren
Ursprung
Commit
e42b67ecff
2 geänderte Dateien mit 22 neuen und 1 gelöschten Zeilen
  1. 9 1
      src/router/index.ts
  2. 13 0
      src/router/routes/routes-file-six.ts

+ 9 - 1
src/router/index.ts

@@ -6,6 +6,7 @@ import routesTwo from "./routes/routes-file-two";
 import routesThree from "./routes/routes-file-three";
 import routesFour from "./routes/routes-file-four";
 import routesFive from "./routes/routes-file-five";
+import routesSix from "./routes/routes-file-six";
 const routesPush = (arr, routes) => {
   if (!Array.isArray(arr)) return "请传入数组格式路由表";
   for (let i = 0; i < arr.length; i++) {
@@ -53,7 +54,14 @@ export const asyncRoutes: RouterTy = [
 
 // 插入路由
 routesPush(
-  [...routesOne, ...routesTwo, ...routesThree, ...routesFour, ...routesFive],
+  [
+    ...routesOne,
+    ...routesTwo,
+    ...routesThree,
+    ...routesFour,
+    ...routesFive,
+    ...routesSix,
+  ],
   asyncRoutes
 );
 

+ 13 - 0
src/router/routes/routes-file-six.ts

@@ -0,0 +1,13 @@
+import Layout from "@/layout";
+
+const HomeRoutes = {
+  path: "/departureC",
+  component: Layout,
+  name: "DepartureC",
+  // redirect: "/BasicsData/airlineCompany",
+  //using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
+  meta: { title: "综合可视化", elSvgIcon: "Fold" },
+  children: [],
+};
+
+export default [HomeRoutes];