1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 06:51:23 +08:00

Split the router

This commit is contained in:
2023-05-16 21:07:34 +08:00
parent d7a3c0265d
commit 126202b8f7
6 changed files with 232 additions and 221 deletions

45
ui/src/router/affair.ts Normal file
View File

@@ -0,0 +1,45 @@
const affairRouter = {
path: '/affair',
name: 'affair',
redirect: 'manage',
children: [
{
path: 'manage',
name: 'affairManage',
component: async () => await import('@/pages/affair/Affair.vue'),
meta: {
title: '事务管理',
requiresScrollbar: true,
requiresPadding: true
}
},
{
path: 'add',
component: async () => await import('@/pages/affair/AffairAdd.vue'),
name: 'affairAdd',
meta: {
title: '事务添加',
requiresScrollbar: true,
requiresPadding: true
}
},
{
path: 'approved',
component: async () => await import('@/pages/affair/AffairApproved.vue'),
name: 'affairApproved',
meta: {
title: '已审批事务',
requiresScrollbar: true,
requiresPadding: true
}
}
],
meta: {
title: '事务',
icon: shallowRef(IconPinnacleAffairs),
requiresScrollbar: false,
requiresPadding: true
}
}
export default affairRouter