hrms-mgt/src/modules/09_leave/router.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 90a47d43ad แก้ไขตาม task
2023-10-06 13:32:54 +07:00

49 lines
No EOL
1.1 KiB
TypeScript

const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue")
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue")
const leaveDetail = () => import("@/modules//09_leave/components/2_Leave/DetailLeave.vue")
export default [
{
path: "/work-list",
name: "/work-list",
component: workMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave-list",
name: "/leave-list",
component: leaveMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/leave/detail/:id",
name: "/leave/detail",
component: leaveDetail,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
{
path: "/statistics-report",
name: "/statistics-report",
component: reportMain,
meta: {
Auth: true,
Key: [9],
Role: "coin",
},
},
]