hrms-mgt/src/modules/08_registryEmployee/router.ts

46 lines
1.1 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")
);
export default [
{
path: "/registryEmployee",
name: "registryEmployee",
component: Main,
meta: {
Auth: true,
Key: [9],
Role: "registryEmployee",
},
},
// {
// path: "/registryEmployee/:id",
// name: "registryEmployeeDetail",
// component: Detail,
// meta: {
// Auth: true,
// Key: [10],
// Role: "registryEmployeeDetails",
// },
// },
{
path: "/registryEmployee/add",
name: "registryEmployeeAdd",
component: Detail,
meta: {
Auth: true,
Key: [11],
Role: "registryEmployee",
},
},
];