Przeglądaj źródła

添加 staticRotuer

Yue 2 lat temu
rodzic
commit
37f5b7337d

+ 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: [