hrms-mgt/src/modules/01_metadata/router.ts
2023-06-01 12:54:58 +07:00

42 lines
899 B
TypeScript

/**
* Router ระบบข้อมูลหลัก (Metadata)
*/
const Main = () => import("@/modules/01_metadata/views/Main.vue");
const ManageDistrict = () =>
import("@/modules/01_metadata/components/person/District.vue");
const ManageSubDistrict = () =>
import("@/modules/01_metadata/components/person/SubDistrict.vue");
export default [
{
path: "/metadata",
name: "metadata",
component: Main,
meta: {
Auth: true,
Key: [7],
Role: "metadata",
},
},
{
path: "/metadata/province/:province",
name: "manageDistrict",
component: ManageDistrict,
meta: {
Auth: true,
Key: [7],
Role: "metadata",
},
},
{
path: "/metadata/province/:province/:district",
name: "manageSubDistrict",
component: ManageSubDistrict,
meta: {
Auth: true,
Key: [7],
Role: "metadata",
},
},
];