5.16
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// 模板自带的功能路由表
|
||||
import login from "../views/login/index.vue";
|
||||
import Layout from "../layout/index.vue";
|
||||
const routerList = [
|
||||
{
|
||||
path: "/login",
|
||||
name: login,
|
||||
component: login,
|
||||
},
|
||||
{
|
||||
path: "/",
|
||||
component: Layout,
|
||||
name: "container",
|
||||
redirect: "home",
|
||||
meta: {
|
||||
requiresAuth: true, //有一些页面是否登录才能进去
|
||||
name: "首页",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/home",
|
||||
name: "home",
|
||||
component: () => import("../views/home/index.vue"),
|
||||
meta: {
|
||||
requiresAuth: true, //有一些页面是否登录才能进去
|
||||
name: "首页",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/group",
|
||||
name: "employe",
|
||||
component: Layout,
|
||||
meta: {
|
||||
requiresAuth: true, //有一些页面是否登录才能进去
|
||||
name: "组别管理",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "/groupManagement",
|
||||
name: "groupManagement",
|
||||
component: () => import("../views/groupManagement/index.vue"),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
name: "组别管理",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
export default routerList;
|
||||
Reference in New Issue
Block a user