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.
91 lines
2.0 KiB
JavaScript
91 lines
2.0 KiB
JavaScript
1 year 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: "/home",
|
||
|
component: () => import("../components/Home.vue"),
|
||
|
children: [
|
||
|
{
|
||
|
path: "/home",
|
||
|
component: () => import("../views/homePage/index.vue"),
|
||
|
name: "home",
|
||
|
meta: {
|
||
|
title: "首页",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/report",
|
||
|
component: () => import("../views/report/index.vue"),
|
||
|
name: "report",
|
||
|
meta: {
|
||
|
title: "状态报表",
|
||
|
//keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/log",
|
||
|
component: () => import("../views/logList/index.vue"),
|
||
|
name: "log",
|
||
|
meta: {
|
||
|
title: "日志列表",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/upgradation",
|
||
|
component: () => import("../views/upgradation/index.vue"),
|
||
|
name: "upgradation",
|
||
|
meta: {
|
||
|
title: "上传Apk",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/upgradationOta",
|
||
|
component: () => import("../views/upgradationOta/index.vue"),
|
||
|
name: "upgradationOta",
|
||
|
meta: {
|
||
|
title: "上传Ota",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/activity",
|
||
|
component: () => import("../views/activityList/index.vue"),
|
||
|
name: "activity",
|
||
|
meta: {
|
||
|
title: "活动列表",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
path: "/userlist",
|
||
|
component: () => import("../views/userList/index.vue"),
|
||
|
name: "userList",
|
||
|
meta: {
|
||
|
title: "用户列表",
|
||
|
keepAlive: true,
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
];
|
||
|
|
||
|
const router = new VueRouter({
|
||
|
mode: "hash",
|
||
|
base: process.env.BASE_URL,
|
||
|
routes,
|
||
|
});
|
||
|
|
||
|
export default router;
|