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:
47
ui/src/router/work.ts
Normal file
47
ui/src/router/work.ts
Normal 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
|
||||
Reference in New Issue
Block a user