closes #4834 create-worker-module #28
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue