shuinichang_/.history/src/router/index_20231124132846.js

91 lines
2.0 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: "/nxglnh",
name: "nxglnh",
component: () => import("@/views/Zhou/NXGLNH.vue")
},
// 能效管理
{
path: "/nxgl",
name: "nxgl",
component: () => import("@/views/Zhou/NXGL.vue")
},
// 碳资源管理
{
path: "/tzcgl",
name: "tzcgl",
component: () => import("@/views/Zhou/TZCGL.vue")
},
// 碳资源管理
{
path: "/tzcglsl",
name: "tzcglsl",
component: () => import("@/views/Zhou/TZCGLSL.vue")
},
{
path: "pds",
name: "pds",
component: () => import("../views/lll/PDS.vue"),
},
{
path: "area",
name: "area",
component: () => import("../views/lll/AREA.vue"),
children: [
{
path: "/",
name: "nyjc",
component: () => import("../views/lll/NYJC.vue"),
},
{
path: "nyjcd",
name: "nyjcd",
component: () => import("../views/lll/NYJCD.vue"),
},
{
path: "nyjcs",
name: "nyjcs",
component: () => import("../views/lll/NYJCS.vue"),
},
],
},
],
},
];
const router = new VueRouter({
mode: "history",
base: process.env.BASE_URL,
routes,
});
export default router;