diff --git a/threadpool/console-new/src/App.tsx b/threadpool/console-new/src/App.tsx
index 0167a9a4..52ecb4b8 100644
--- a/threadpool/console-new/src/App.tsx
+++ b/threadpool/console-new/src/App.tsx
@@ -19,6 +19,26 @@ const App = () => {
{ label: {useTran(STR_MAP.THREAD_POOL)}, key: '/thread-poll/index' },
],
},
+ {
+ label: {useTran(STR_MAP.TENANT_MANAGE)},
+ key: STR_MAP.TENANT_MANAGE,
+ icon: ,
+ },
+ {
+ label: {useTran(STR_MAP.PROJECT_MANAGE)},
+ key: STR_MAP.PROJECT_MANAGE,
+ icon: ,
+ },
+ {
+ label: {useTran(STR_MAP.USER_MANAGE)},
+ key: STR_MAP.USER_MANAGE,
+ icon: ,
+ },
+ {
+ label: {useTran(STR_MAP.LOG_MANAGE)},
+ 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..8632ba92 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',
+ LOG_MANAGE = 'logManage',
+ PROJECT_MANAGE = 'projectManage',
+ USER_MANAGE = 'userManage',
}
diff --git a/threadpool/console-new/src/config/i18n/locales/en.ts b/threadpool/console-new/src/config/i18n/locales/en.ts
index ab05675d..45be09f0 100644
--- a/threadpool/console-new/src/config/i18n/locales/en.ts
+++ b/threadpool/console-new/src/config/i18n/locales/en.ts
@@ -19,6 +19,10 @@ const enTranslationMap: { [key: string]: string } = {
[STR_MAP.CREATION_TIME]: 'creation time',
[STR_MAP.UPDATE_TIME]: 'update time',
[STR_MAP.EDIT]: 'edit',
+ [STR_MAP.TENANT_MANAGE]: 'tenant management',
+ [STR_MAP.PROJECT_MANAGE]: 'project management',
+ [STR_MAP.USER_MANAGE]: 'user management',
+ [STR_MAP.LOG_MANAGE]: 'log management',
};
export default enTranslationMap;
diff --git a/threadpool/console-new/src/config/i18n/locales/zh.ts b/threadpool/console-new/src/config/i18n/locales/zh.ts
index 05544c3b..301d4a4b 100644
--- a/threadpool/console-new/src/config/i18n/locales/zh.ts
+++ b/threadpool/console-new/src/config/i18n/locales/zh.ts
@@ -19,6 +19,10 @@ const zhTranslationMap: { [key: string]: string } = {
[STR_MAP.CREATION_TIME]: '创建时间',
[STR_MAP.UPDATE_TIME]: '更新时间',
[STR_MAP.EDIT]: '操作',
+ [STR_MAP.TENANT_MANAGE]: '租户管理',
+ [STR_MAP.PROJECT_MANAGE]: '项目管理',
+ [STR_MAP.USER_MANAGE]: '用户管理',
+ [STR_MAP.LOG_MANAGE]: '日志管理',
};
export default zhTranslationMap;
diff --git a/threadpool/console-new/src/index.tsx b/threadpool/console-new/src/index.tsx
index 682dd7f7..f46fb217 100644
--- a/threadpool/console-new/src/index.tsx
+++ b/threadpool/console-new/src/index.tsx
@@ -1,10 +1,11 @@
-import React from 'react';
+import React, { Suspense } from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import { MyStore } from './context';
import './config/i18n';
import 'antd/dist/reset.css';
+import { Spin } from 'antd';
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
@@ -14,7 +15,9 @@ root.render(
{/* theme context */}
{/* theme config context */}
-
+ }>
+
+
diff --git a/threadpool/console-new/src/route/index.tsx b/threadpool/console-new/src/route/index.tsx
index 54d9f987..285b5f77 100644
--- a/threadpool/console-new/src/route/index.tsx
+++ b/threadpool/console-new/src/route/index.tsx
@@ -4,9 +4,18 @@ import aboutRouter from '@/page/about/router';
import ThreadPoolRouter from '@/page/thread-pool/router';
import tenantRouter from '@/page/tenant/router';
import LoginRouter from '@/page/login/router';
-// import itemRouter from '@/page/item/router';
-// import userRouter from '@/page/user/router';
-// import logRouter from '@/page/log/router';
+import itemRouter from '@/page/item/router';
+import userRouter from '@/page/user/router';
+import logRouter from '@/page/log/router';
-const routerList: IRouterList[] = [...homeRouter, ...aboutRouter, ...tenantRouter, ...ThreadPoolRouter, ...LoginRouter];
+const routerList: IRouterList[] = [
+ ...homeRouter,
+ ...aboutRouter,
+ ...tenantRouter,
+ ...ThreadPoolRouter,
+ ...LoginRouter,
+ ...itemRouter,
+ ...userRouter,
+ ...logRouter,
+];
export default routerList;