61 lines
1.2 KiB
JavaScript
61 lines
1.2 KiB
JavaScript
import Vue from "vue";
|
|
import VueRouter from "vue-router";
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
name: "index",
|
|
component: () => import("../views/Index.vue"),
|
|
children: [
|
|
{
|
|
path: "/znyw",
|
|
name: "znyw",
|
|
component: () => import("../views/lll/ZNYW.vue"),
|
|
},
|
|
// 负荷管理
|
|
{
|
|
path: "/fhgl",
|
|
name: "fhgl",
|
|
component: () => import("@/views/Zhou/FHGL.vue"),
|
|
},
|
|
// 可调负荷
|
|
{
|
|
path: "/kdfh",
|
|
name: "kdfh",
|
|
component: () => import("@/views/Zhou/KDFH.vue"),
|
|
},
|
|
// 能效管理
|
|
{
|
|
path:"/nxgl",
|
|
name:"nxgl",
|
|
component:()=>import("@/views/Zhou/NXGL.vue")
|
|
},
|
|
{
|
|
path: "/pds",
|
|
name: "pds",
|
|
component: () => import("../views/lll/PDS.vue"),
|
|
},
|
|
{
|
|
path: "/nyjcd",
|
|
name: "nyjcd",
|
|
component: () => import("../views/lll/NYJCD.vue"),
|
|
},
|
|
{
|
|
path: "/nyjc",
|
|
name: "nyjc",
|
|
component: () => import("../views/lll/NYJC.vue"),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
const router = new VueRouter({
|
|
mode: "history",
|
|
base: process.env.BASE_URL,
|
|
routes,
|
|
});
|
|
|
|
export default router;
|