|
@@ -1,41 +1,55 @@
|
|
import {
|
|
import {
|
|
createRouter,
|
|
createRouter,
|
|
- createWebHashHistory
|
|
|
|
|
|
+ createWebHashHistory,
|
|
} from "vue-router";
|
|
} from "vue-router";
|
|
|
|
|
|
const routes = [
|
|
const routes = [
|
|
{
|
|
{
|
|
path: "/",
|
|
path: "/",
|
|
- redirect: "/welcome"
|
|
|
|
|
|
+ redirect: "/index"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
icon: "menuIcon el-icon el-icon-s-home", // 菜单所用 icon
|
|
icon: "menuIcon el-icon el-icon-s-home", // 菜单所用 icon
|
|
- path: "/welcome", // 菜单 path
|
|
|
|
|
|
+ path: "/index", // 菜单 path
|
|
name: "首页", // 菜单显示的名称
|
|
name: "首页", // 菜单显示的名称
|
|
- component: () => import("../views/test/page1.vue"),
|
|
|
|
- // children: [{
|
|
|
|
- // icon: "menuIcon el-icon el-icon-copy-document",
|
|
|
|
- // path: "page3",
|
|
|
|
- // name: "页面3",
|
|
|
|
- // component: () => import("../views/test/page3.vue"),
|
|
|
|
- // }]
|
|
|
|
|
|
+ component: () => import("../views/layout/home.vue"),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- icon: "menuIcon el-icon el-icon-edit-outline",
|
|
|
|
- path: "/page2",
|
|
|
|
- name: "页面2",
|
|
|
|
- component: () => import("../views/test/page2.vue"),
|
|
|
|
|
|
+ icon: "menuIcon el-icon el-icon-postcard",
|
|
|
|
+ path: "/sample",
|
|
|
|
+ name: "样本",
|
|
|
|
+ component: () => import("../views/sample/router/index.vue"),
|
|
|
|
+ children: [{
|
|
|
|
+ path: "fault",
|
|
|
|
+ name: "故障样本",
|
|
|
|
+ component: () => import("../views/sample/realfault.vue"),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: "diagnose",
|
|
|
|
+ name: "诊断样本",
|
|
|
|
+ component: () => import("../views/sample/diagnosefault.vue"),
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ icon: "menuIcon el-icon el-icon-document",
|
|
|
|
+ path: "/know",
|
|
|
|
+ name: "知识库",
|
|
|
|
+ component: () => import("../views/know/router/index.vue"),
|
|
|
|
+ children: [{
|
|
|
|
+ path: "station",
|
|
|
|
+ name: "故障分类",
|
|
|
|
+ component: () => import("../views/know/faultcategory.vue"),
|
|
|
|
+ }]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- icon: "menuIcon el-icon el-icon-edit-outline",
|
|
|
|
- path: "/other",
|
|
|
|
- name: "其他",
|
|
|
|
- component: () => import("../views/test/page3.vue"),
|
|
|
|
|
|
+ icon: "menuIcon el-icon el-icon-info",
|
|
|
|
+ path: "/info",
|
|
|
|
+ name: "基础配置",
|
|
|
|
+ component: () => import("../views/basicinfo/router/index.vue"),
|
|
children: [{
|
|
children: [{
|
|
- icon: "menuIcon el-icon el-icon-copy-document",
|
|
|
|
- path: "page3",
|
|
|
|
- name: "页面3",
|
|
|
|
- component: () => import("../views/test/page3.vue"),
|
|
|
|
|
|
+ path: "station",
|
|
|
|
+ name: "场站数据",
|
|
|
|
+ component: () => import("../views/basicinfo/station.vue"),
|
|
}]
|
|
}]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -47,7 +61,6 @@ const routes = [
|
|
|
|
|
|
const router = createRouter({
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
history: createWebHashHistory(),
|
|
- base: "/zhfx/",
|
|
|
|
routes
|
|
routes
|
|
});
|
|
});
|
|
|
|
|