From 9b2d9f05eca584238e76dc399a1993feea5c5b60 Mon Sep 17 00:00:00 2001 From: hutanglong Date: Tue, 19 Sep 2023 13:38:17 +0800 Subject: [PATCH] add router --- threadpool/console-new/src/App.tsx | 24 +++++++++++++++++++ .../src/config/i18n/locales/constants.ts | 4 ++++ 2 files changed, 28 insertions(+) diff --git a/threadpool/console-new/src/App.tsx b/threadpool/console-new/src/App.tsx index 6ba9ca5b..5264d2ac 100644 --- a/threadpool/console-new/src/App.tsx +++ b/threadpool/console-new/src/App.tsx @@ -21,6 +21,30 @@ const App = () => { { label: {useTran(STR_MAP.THREAD_POOL)}, key: '/thread-poll/index' }, ], }, + { + // label: {useTran(STR_MAP.LOG_MANAGE)}, + label: 租户管理, + key: STR_MAP.TENANT_MANAGE, + icon: , + }, + { + // label: {useTran(STR_MAP.PROJECT_MANAGE)}, + label: 项目管理, + key: STR_MAP.PROJECT_MANAGE, + icon: , + }, + { + // label: {useTran(STR_MAP.USE_RIGHT)}, + label: 用户权限, + key: STR_MAP.USE_RIGHT, + icon: , + }, + { + // label: {useTran(STR_MAP.LOG_MANAGE)}, + label: 日志管理, + key: STR_MAP.LOG_MANAGE, + icon: , + }, ]; return ( diff --git a/threadpool/console-new/src/config/i18n/locales/constants.ts b/threadpool/console-new/src/config/i18n/locales/constants.ts index 84fe02d5..cee8b529 100644 --- a/threadpool/console-new/src/config/i18n/locales/constants.ts +++ b/threadpool/console-new/src/config/i18n/locales/constants.ts @@ -17,4 +17,8 @@ export enum STR_MAP { CREATION_TIME = 'creationTime', UPDATE_TIME = 'update time', EDIT = 'edit', + TENANT_MANAGE = 'tenantManage', + PROJECT_MANAGE = 'projectManage', + LOG_MANAGE = 'logManage', + USE_RIGHT = 'userRight', }