This commit is contained in:
hezhidong
2025-05-16 08:55:13 +08:00
parent e62c3fce70
commit 839703dc1a
66 changed files with 5029 additions and 0 deletions
+52
View File
@@ -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;