felicity-lims/webapp/router/worksheet.ts

31 lines
753 B
TypeScript
Raw Normal View History

2022-11-22 00:11:43 +08:00
const wsRoutes = [
{
path: '',
name: 'worksheet-listing',
component: () => import('../views/worksheet/WorkSheetListing.vue'),
meta: {
2023-04-10 09:29:10 +08:00
requiresAuth: true,
2022-11-22 00:11:43 +08:00
},
2023-04-10 09:29:10 +08:00
},
{
2022-11-22 00:11:43 +08:00
path: ':workSheetUid',
name: 'worksheet-single',
component: () => import('../views/worksheet/_id/index.vue'),
children: [
2023-04-10 09:29:10 +08:00
{
path: '',
name: 'worksheet-detail',
component: () => import('../views/worksheet/_id/WorkSheetDetail.vue'),
meta: {
requiresAuth: true,
},
2022-11-22 00:11:43 +08:00
},
],
meta: {
2023-04-10 09:29:10 +08:00
requiresAuth: true,
2022-11-22 00:11:43 +08:00
},
2023-04-10 09:29:10 +08:00
},
];
2022-11-22 00:11:43 +08:00
2023-04-10 09:29:10 +08:00
export default wsRoutes;