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

47
ui/src/router/work.ts Normal file
View File

@@ -0,0 +1,47 @@
const workRouter = {
path: '/work',
name: 'work',
children: [
{
path: 'manage',
component: async () => await import('@/pages/work/Manage.vue'),
name: 'workManage',
meta: {
title: '工作管理',
requiresScrollbar: false,
requiresPadding: true
}
},
{
path: 'task',
component: async () => await import('@/pages/work/Task.vue'),
name: 'task',
redirect: '/work/task/todo',
children: [
{
path: 'todo',
component: async () => await import('@/pages/work/Todo.vue'),
name: 'todo'
},
{
path: 'complete',
component: async () => await import('@/pages/work/Complete.vue'),
name: 'complete'
}
],
meta: {
title: '工作事项',
requiresScrollbar: false,
requiresPadding: true
}
}
],
meta: {
title: '工作事项',
icon: shallowRef(IconPinnacleWork),
requiresScrollbar: false,
requiresPadding: true
}
}
export default workRouter