fix: refs #4774 fix routes

This commit is contained in:
Carlos Satorres 2025-01-13 07:58:55 +01:00
parent 0291749800
commit f849e71050
3 changed files with 11 additions and 15 deletions

View File

@ -43,5 +43,5 @@ export default [
Zone,
Account,
Monitor,
Role,
TranslationsVn,
];

View File

@ -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'),
},
],
},
],

View File

@ -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',