Files
cdTestPlant3/cdTMP/src/router/routes/modules/dashboard.js

56 lines
1.5 KiB
JavaScript
Raw Normal View History

2023-06-04 20:01:58 +08:00
import { DEFAULT_LAYOUT } from "../base"
const DASHBOARD = {
path: "/dashboard",
name: "dashboard",
component: DEFAULT_LAYOUT, // () => import("@/layout/default-layout.vue")
meta: {
requiresAuth: true,
2023-06-08 21:09:28 +08:00
icon: "icon-home",
2023-06-12 20:47:54 +08:00
order: 99,
2024-06-20 19:12:13 +08:00
locale: "首页",
title: "首页"
2023-06-04 20:01:58 +08:00
},
children: [
{
path: "workplace",
2024-07-22 18:57:12 +08:00
name: "workplace",
2023-06-04 20:01:58 +08:00
component: () => import("@/views/dashboard/workplace/index.vue"),
meta: {
requiresAuth: true,
2023-06-05 21:02:25 +08:00
roles: ["*"],
2023-06-08 21:09:28 +08:00
locale: "工作台",
2024-06-20 19:12:13 +08:00
icon: "icon-dashboard",
title: "工作台"
2023-06-08 21:09:28 +08:00
}
},
{
path: "usercenter",
2024-07-22 18:57:12 +08:00
name: "usercenter",
2023-06-08 21:09:28 +08:00
component: () => import("@/views/dashboard/usercenter/index.vue"),
meta: {
2024-07-22 18:57:12 +08:00
ignoreCache: false,
2023-06-08 21:09:28 +08:00
requiresAuth: true,
roles: ["*"],
locale: "用户中心",
2024-06-20 19:12:13 +08:00
icon: "icon-user",
title: "用户中心"
2023-06-08 21:09:28 +08:00
}
},
{
path: "usermanage",
2024-07-22 18:57:12 +08:00
name: "usermanage",
2023-06-08 21:09:28 +08:00
component: () => import("@/views/dashboard/usermanage/index.vue"),
meta: {
requiresAuth: true,
roles: ["*"],
locale: "用户管理",
2024-06-20 19:12:13 +08:00
icon: "icon-user-group",
title: "用户管理"
2023-06-04 20:01:58 +08:00
}
2024-06-20 19:12:13 +08:00
}
2023-06-04 20:01:58 +08:00
]
}
export default DASHBOARD