From f849e710506ce855215a9ac096ab85b3e64b5bfc Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 13 Jan 2025 07:58:55 +0100 Subject: [PATCH] fix: refs #4774 fix routes --- src/router/modules/index.js | 2 +- src/router/modules/worker.js | 20 ++++++++++---------- src/router/routes.js | 4 ---- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/router/modules/index.js b/src/router/modules/index.js index 9f8432b36..f9eaacc5e 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -43,5 +43,5 @@ export default [ Zone, Account, Monitor, - Role, + TranslationsVn, ]; diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 3c78b9036..f2d2b00de 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -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'), + }, ], }, ], diff --git a/src/router/routes.js b/src/router/routes.js index fdc88ec1e..bb6d44bb4 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -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',