1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +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

62
ui/src/router/notice.ts Normal file
View File

@@ -0,0 +1,62 @@
const noticeRouter = {
path: '/notice',
name: 'noticeHome',
meta: {
title: '公告管理',
icon: shallowRef(IconPinnacleNotice),
requiresScrollbar: false,
requiresPadding: true
},
children: [
{
path: 'noticeManage',
component: async () => await import('@/pages/notice/NoticeManage.vue'),
name: 'noticeManage',
meta: {
title: '公告管理',
requiresScrollbar: false,
requiresPadding: true
}
},
{
path: 'noticeView',
component: async () => await import('@/pages/notice/NoticeView.vue'),
name: 'noticeView',
redirect: '/notice/noticeView/all',
meta: {
title: '公告查看',
requiresScrollbar: false,
requiresPadding: true
},
children: [
{
path: 'all',
component: async () => await import('@/pages/notice/AllReceiveNoticeView.vue'),
name: 'all'
},
{
path: 'alRead',
component: async () => await import('@/pages/notice/AlReadView.vue'),
name: 'alRead'
},
{
path: 'toRead',
component: async () => await import('@/pages/notice/ToReadView.vue'),
name: 'toRead'
}
]
},
{
path: 'noticeTypeManage',
component: async () => await import('@/pages/notice/NoticeTypeManage.vue'),
name: 'noticeTypeManage',
meta: {
title: '公告类型管理',
requiresScrollbar: false,
requiresPadding: true
}
}
]
}
export default noticeRouter