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.
|
|
|
import Vue from "vue";
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
name: "login",
|
|
|
|
component: () => import("../views/login/index.vue"),
|
|
|
|
meta: { title: "登录", noAuth: true }, // 标记为免登录页面
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// 权限页面
|
|
|
|
path: "/permission",
|
|
|
|
name: "permission",
|
|
|
|
component: () =>
|
|
|
|
import(/* webpackChunkName: "permission" */ "../Permission.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,
|
|
|
|
noAuth: 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: "/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;
|