fix: refs #4774 fix routes
This commit is contained in:
parent
0291749800
commit
f849e71050
|
@ -43,5 +43,5 @@ export default [
|
|||
Zone,
|
||||
Account,
|
||||
Monitor,
|
||||
Role,
|
||||
TranslationsVn,
|
||||
];
|
||||
|
|
|
@ -57,15 +57,6 @@ const workerCard = {
|
|||
},
|
||||
component: () => import('src/pages/Worker/Card/WorkerBasicData.vue'),
|
||||
},
|
||||
{
|
||||
path: 'translations',
|
||||
name: 'TranslationsVn',
|
||||
meta: {
|
||||
title: 'translations',
|
||||
icon: 'history_edu',
|
||||
},
|
||||
component: () => import('src/pages/Worker/TranslationsVn.vue'),
|
||||
},
|
||||
{
|
||||
path: 'notes',
|
||||
name: 'NotesCard',
|
||||
|
@ -242,7 +233,7 @@ export default {
|
|||
icon: 'vn:worker',
|
||||
moduleName: 'Worker',
|
||||
keyBinding: 'w',
|
||||
menu: ['WorkerList', 'WorkerDepartment'],
|
||||
menu: ['WorkerList', 'WorkerDepartment', 'TranslationsVn'],
|
||||
},
|
||||
component: RouterView,
|
||||
redirect: { name: 'WorkerMain' },
|
||||
|
@ -284,6 +275,15 @@ export default {
|
|||
departmentCard,
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'translations',
|
||||
name: 'TranslationsVn',
|
||||
meta: {
|
||||
title: 'translations',
|
||||
icon: 'history_edu',
|
||||
},
|
||||
component: () => import('src/pages/Worker/TranslationsVn.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
@ -19,8 +19,6 @@ import agency from 'src/router/modules/agency';
|
|||
import zone from 'src/router/modules/zone';
|
||||
import account from 'src/router/modules/account';
|
||||
import monitor from 'src/router/modules/monitor';
|
||||
import mailAlias from 'src/router/modules/mailAlias';
|
||||
import translationsVn from 'src/router/modules/translationsVn';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
|
@ -93,8 +91,6 @@ const routes = [
|
|||
ItemType,
|
||||
zone,
|
||||
account,
|
||||
mailAlias,
|
||||
translationsVn,
|
||||
{
|
||||
path: '/:catchAll(.*)*',
|
||||
name: 'NotFound',
|
||||
|
|
Loading…
Reference in New Issue