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.

60 lines
1.3 KiB
JavaScript

2 years ago
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: "/dataReport",
component: () => import("../views/dataReport/index.vue"),
name: "dataR1eport",
meta: {
title: "数据报表",
},
},
{
path: "/equipment",
component: () => import("../views/equipment/index.vue"),
name: "equipment",
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配置",
},
},
2 years ago
],
},
];
const router = new VueRouter({
mode: "hash",
base: process.env.BASE_URL,
routes,
});
export default router;