소스 검색

添加 staticRotuer

Yue 2 년 전
부모
커밋
37f5b7337d
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      UI/VA.Vue_V1.0/src/router/_staticRotuer.ts
  2. 2 0
      UI/VA.Vue_V1.0/src/router/index.ts

+ 16 - 0
UI/VA.Vue_V1.0/src/router/_staticRotuer.ts

@@ -0,0 +1,16 @@
+import type { RouteRecordRaw } from "vue-router"
+export const staticRotuer: Array<RouteRecordRaw> = [
+  {
+    path: "/",
+    children: [
+      {
+        path: "/demo/01",
+        component: () => import("@/views/home.vue"),
+        meta: {
+          title: "DEMO",
+          breadcrumbs: ["DEMO", "DEMO", "DEMO"],
+        },
+      },
+    ],
+  },
+]

+ 2 - 0
UI/VA.Vue_V1.0/src/router/index.ts

@@ -5,6 +5,7 @@ import NProgress from "nprogress"
 import JwtService from "@/core/services/JwtService"
 import { isRelogin } from "@/core/services/RequestService"
 import message from "../core/utils/message"
+import { staticRotuer } from "./_staticRotuer"
 
 const whiteList = ["/login", "/register", "/icon"]
 
@@ -56,6 +57,7 @@ export const constantRoutes: Array<RouteRecordRaw> = [
       },
     ],
   },
+  ...staticRotuer,
   {
     path: "/",
     children: [