|
@@ -1,4 +1,4 @@
|
|
|
-import { createRouter, createWebHashHistory } from "vue-router";
|
|
|
|
|
|
|
+import {createRouter, createWebHashHistory} from "vue-router";
|
|
|
import NProgress from "nprogress";
|
|
import NProgress from "nprogress";
|
|
|
|
|
|
|
|
const routes = [
|
|
const routes = [
|
|
@@ -11,10 +11,21 @@ const routes = [
|
|
|
path: "/home",
|
|
path: "/home",
|
|
|
name: "首页",
|
|
name: "首页",
|
|
|
component: () => import("@/pages/HomeIndex.vue"),
|
|
component: () => import("@/pages/HomeIndex.vue"),
|
|
|
|
|
+ }, {
|
|
|
|
|
+ path: "/train",
|
|
|
|
|
+ name: "行车控制智能体仿真",
|
|
|
|
|
+ component: () => import("@/pages/train/index.vue")
|
|
|
|
|
+ }, {
|
|
|
|
|
+ path: "/device",
|
|
|
|
|
+ name: "综合监控智能体仿真",
|
|
|
|
|
+ component: () => import("@/pages/device/index.vue")
|
|
|
|
|
+ }, {
|
|
|
|
|
+ path: "/situation",
|
|
|
|
|
+ name: "场景态势智能体仿真",
|
|
|
|
|
+ component: () => import("@/pages/situation/index.vue")
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ }, {
|
|
|
path: "/:pathMatch(.*)*",
|
|
path: "/:pathMatch(.*)*",
|
|
|
component: () => import("@/pages/404.vue"),
|
|
component: () => import("@/pages/404.vue"),
|
|
|
},
|
|
},
|