mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-24 18:18:07 +07:00
50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
export async function load({ url }) {
|
|
const routeConfig = {
|
|
'/': {
|
|
title: 'Dashboard',
|
|
},
|
|
'/patient/list': {
|
|
title: 'Patient List',
|
|
},
|
|
'/patient/admission': {
|
|
title: 'Patient Admission',
|
|
},
|
|
'/dictionary/contact': {
|
|
title: 'Contact'
|
|
},
|
|
'/dictionary/location': {
|
|
title: 'Location'
|
|
},
|
|
'/dictionary/occupation': {
|
|
title: 'Occupation'
|
|
},
|
|
'/dictionary/container': {
|
|
title: 'Container'
|
|
},
|
|
'/dictionary/account': {
|
|
title: 'Account'
|
|
},
|
|
'/dictionary/site': {
|
|
title: 'Site'
|
|
},
|
|
'/dictionary/discipline': {
|
|
title: 'Discipline'
|
|
},
|
|
'/dictionary/department': {
|
|
title: 'Department'
|
|
},
|
|
'/dictionary/workstation': {
|
|
title: 'Workstation'
|
|
},
|
|
'/dictionary/test': {
|
|
title: 'Test'
|
|
},
|
|
};
|
|
|
|
const config = routeConfig[url.pathname] || {
|
|
title: '',
|
|
actions: []
|
|
};
|
|
|
|
return config;
|
|
} |