hrms-mgt/src/modules/08_registryEmployee/router.ts
Tanyalak 06c3d36c7a Merge branch 'develop' into working
# Conflicts:
#	src/interface/request/main/main.ts
#	src/modules/08_registryEmployee/router.ts
#	src/modules/08_registryEmployee/views/Main.vue
2023-08-16 17:06:58 +07:00

59 lines
1.4 KiB
TypeScript

/**
* Router ระบบทะเบียนประวัติลูกจ้าง (registryEmployee)
*/
import { defineAsyncComponent } from "vue";
// const Main = () => import("@/modules/08_registryEmployee/views/Main.vue");
// const Detail = () => import("@/modules/08_registryEmployee/views/Detail.vue");
const Main = defineAsyncComponent(
() => import("@/modules/08_registryEmployee/views/Main.vue")
);
const Detail = defineAsyncComponent(
() => import("@/modules/08_registryEmployee/views/Detail.vue")
);
const EditDetail = defineAsyncComponent(
() => import("@/modules/08_registryEmployee/views/EditDetail.vue")
);
export default [
{
path: "/registry-employee",
name: "registry-employee",
component: Main,
meta: {
Auth: true,
Key: [11],
Role: "registryEmployee",
},
},
// {
// path: "/registryEmployee/:id",
// name: "registryEmployeeDetail",
// component: Detail,
// meta: {
// Auth: true,
// Key: [10],
// Role: "registryEmployeeDetails",
// },
// },
{
path: "/registry-employee/add",
name: "registryEmployeeAdd",
component: Detail,
meta: {
Auth: true,
Key: [11],
Role: "registryEmployee",
},
},
{
path: "/registry-employee/edit/:id",
name: "registryEmployeeEdit",
component: EditDetail,
meta: {
Auth: true,
Key: [11],
Role: "registryEmployee",
},
},
];