felicity-lims/webapp/router/worksheet.ts

31 lines
754 B
TypeScript
Raw Normal View History

2023-11-10 14:05:15 +08:00
const wsRoutes = [
{
path: '',
name: 'worksheet-listing',
component: () => import('@/views/worksheet/WorkSheetListing.vue'),
2023-11-10 14:05:15 +08:00
meta: {
requiresAuth: true,
},
},
{
path: ':workSheetUid',
name: 'worksheet-single',
component: () => import('@/views/worksheet/_id/WorkSheet.vue'),
2023-11-10 14:05:15 +08:00
children: [
{
path: '',
name: 'worksheet-detail',
component: () => import('@/views/worksheet/_id/WorkSheetDetail.vue'),
2023-11-10 14:05:15 +08:00
meta: {
requiresAuth: true,
},
},
],
meta: {
requiresAuth: true,
},
},
];
export default wsRoutes;