closes #4834 create-worker-module #28

Merged
joan merged 27 commits from 4834-create-worker-module into dev 2023-03-08 09:54:59 +00:00
1 changed files with 9 additions and 6 deletions
Showing only changes of commit b143f1f9c7 - Show all commits

View File

@ -1,24 +1,27 @@
import { RouterView } from 'vue-router';
export default {
name: 'Worker',
path: '/worker',
name: 'Worker',
meta: {
title: 'workers',
icon: 'vn:worker',
},
component: RouterView,
redirect: { name: 'WorkerMain' },
redirect: { name: 'workerMain' },
menus: {
main: ['workerMain'],
},
children: [
{
name: 'WorkerMain',
path: '',
name: 'workerMain',
component: () => import('src/pages/Worker/WorkerMain.vue'),
redirect: { name: 'WorkerList' },
children: [
{
name: 'WorkerList',
path: 'list',
name: 'WorkerList',
meta: {
title: 'list',
icon: 'view_list',
@ -28,13 +31,13 @@ export default {
],
},
{
name: 'WorkerCard',
name: 'workerCard',
path: ':id',
component: () => import('src/pages/Worker/Card/WorkerCard.vue'),
redirect: { name: 'WorkerSummary' },
children: [
{
name: 'WorkerSummary',
name: 'workerSummary',
path: 'summary',
meta: {
title: 'summary',