You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.7 KiB
JavaScript

import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
// {
// path: "/login",
// component: () => import("../views/login/index.vue"),
// meta: { title: "登录" },
// },
{
path: "/",
redirect: "/dataReport",
component: () => import("../components/Home.vue"),
children: [
// {
// path: "/home",
// component: () => import("../views/homePage/index.vue"),
// name: "homepage",
// meta: {
// title: "首页",
// },
// },
{
path: "/dataReport",
component: () => import("../views/dataReport/index.vue"),
name: "dataR1eport",
meta: {
title: "数据报表",
},
},
{
path: "/equipment",
component: () => import("../views/equipment/index.vue"),
name: "equipment",
redirect: "/equipment/bdz",
meta: {
title: "设备台账管理",
},
children: [
{
path: "/equipment/bdz",
component: () => import("../views/equipment/bdz/index.vue"),
name: "bdz",
meta: {
title: "变电站",
},
},
{
path: "/equipment/qyjg",
component: () => import("../views/equipment/qyjg/index.vue"),
name: "qyjg",
meta: {
title: "区域间隔",
},
},
{
path: "/equipment/sblx",
component: () => import("../views/equipment/sblx/index.vue"),
name: "sblx",
meta: {
title: "设备类型",
},
},
{
path: "/equipment/zsb",
component: () => import("../views/equipment/zsb/index.vue"),
name: "zsb",
meta: {
title: "主设备",
},
},
{
path: "/equipment/modevtype",
component: () => import("../views/equipment/modevtype/index.vue"),
name: "modevtype",
meta: {
title: "监测设备类型",
},
},
],
},
{
path: "/systemManagement",
component: () => import("../views/systemManagement/index.vue"),
name: "systemManagement",
meta: {
title: "系统管理",
},
},
{
path: "/icdConfig",
component: () => import("../views/icdConfig/index.vue"),
name: "icdConfig",
meta: {
title: "icd配置",
},
},
],
},
];
const router = new VueRouter({
mode: "hash",
base: process.env.BASE_URL,
routes,
});
export default router;