mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-24 10:08:07 +07:00
59 lines
1.4 KiB
JavaScript
59 lines
1.4 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 List'
|
|
},
|
|
'/dictionary/testmap': {
|
|
title: 'Test Map'
|
|
},
|
|
'/dictionary/instrument': {
|
|
title: 'Instrument'
|
|
},
|
|
'/order/ordertest': {
|
|
title: 'Order Test'
|
|
},
|
|
};
|
|
|
|
const config = routeConfig[url.pathname] || {
|
|
title: '',
|
|
actions: []
|
|
};
|
|
|
|
return config;
|
|
} |