diff --git a/react-ui/config/routes.ts b/react-ui/config/routes.ts
index 3c01a97c..e264e64d 100644
--- a/react-ui/config/routes.ts
+++ b/react-ui/config/routes.ts
@@ -86,17 +86,7 @@ export default [
{
name: '数据准备',
path: '/datasetPreparation',
- routes: [
- {
- path: '',
- redirect: '/datasetPreparation/datasetAnnotation',
- },
- {
- name: '数据标注',
- path: 'datasetAnnotation',
- component: './DatasetPreparation/DatasetAnnotation/index',
- },
- ],
+ component: './DatasetPreparation/DatasetAnnotation/index',
},
{
name: '开发环境',
@@ -452,13 +442,53 @@ export default [
},
{
name: '应用开发',
- path: '/appsDeployment',
+ path: '/apps',
routes: [
{
- name: '应用开发',
+ name: '模型部署',
path: '',
- key: 'appsDeployment',
- component: './Application',
+ component: './ModelDeployment/List',
+ },
+ {
+ name: '创建推理服务',
+ path: 'createService',
+ component: './ModelDeployment/CreateService',
+ },
+ {
+ name: '编辑推理服务',
+ path: 'editService/:serviceId',
+ component: './ModelDeployment/CreateService',
+ },
+ {
+ name: '服务详情',
+ path: 'serviceInfo/:serviceId',
+ routes: [
+ {
+ name: '服务详情',
+ path: '',
+ component: './ModelDeployment/ServiceInfo',
+ },
+ {
+ name: '新增服务版本',
+ path: 'createVersion',
+ component: './ModelDeployment/CreateVersion',
+ },
+ {
+ name: '更新服务版本',
+ path: 'updateVersion',
+ component: './ModelDeployment/CreateVersion',
+ },
+ {
+ name: '重启服务版本',
+ path: 'restartVersion',
+ component: './ModelDeployment/CreateVersion',
+ },
+ {
+ name: '服务版本详情',
+ path: 'versionInfo/:id',
+ component: './ModelDeployment/VersionInfo',
+ },
+ ],
},
],
},
@@ -619,6 +649,48 @@ export default [
},
],
},
+ {
+ name: 'agent',
+ path: '/agent',
+ routes: [
+ {
+ name: '智能体',
+ path: '',
+ key: 'agent',
+ redirect: '/agent/mine',
+ },
+ {
+ name: '发布管理',
+ path: 'publish',
+ key: 'publish',
+ component: './Agent/Publish',
+ },
+ {
+ name: '模型管理',
+ path: 'model',
+ key: 'model',
+ component: './Agent/Model',
+ },
+ {
+ name: '我的智能体',
+ path: 'mine',
+ key: 'mine',
+ component: './Agent/Mine',
+ },
+ {
+ name: '资源管理',
+ path: 'resource',
+ key: 'resource',
+ component: './Agent/Resource',
+ },
+ {
+ name: '插件市场',
+ path: 'plugin',
+ key: 'plugin',
+ component: './Agent/Plugin',
+ },
+ ],
+ },
{
name: 'mixed',
path: '/mixed',
diff --git a/react-ui/src/app.tsx b/react-ui/src/app.tsx
index 8069d4af..9e3839de 100644
--- a/react-ui/src/app.tsx
+++ b/react-ui/src/app.tsx
@@ -91,8 +91,8 @@ export const layout: RuntimeConfig['layout'] = ({ initialState }) => {
// if (initialState?.loading) return ;
return {children};
},
- collapsedButtonRender: false,
- collapsed: initialState?.collapsed,
+ // collapsedButtonRender: false,
+ // collapsed: initialState?.collapsed,
menuProps: {
onClick: () => {
// 点击菜单项,删除所有的页面 state 缓存
diff --git a/react-ui/src/global.less b/react-ui/src/global.less
index 0c3a059d..d966c79b 100644
--- a/react-ui/src/global.less
+++ b/react-ui/src/global.less
@@ -72,7 +72,7 @@ body {
background-color: #fff;
}
.ant-pro-global-header-logo img {
- height: 32px;
+ height: 22px;
}
.ant-pro-layout .ant-layout-sider.ant-pro-sider {
height: 100vh;
diff --git a/react-ui/src/pages/Agent/Mine/index.tsx b/react-ui/src/pages/Agent/Mine/index.tsx
new file mode 100644
index 00000000..aeeee56f
--- /dev/null
+++ b/react-ui/src/pages/Agent/Mine/index.tsx
@@ -0,0 +1,8 @@
+import IframePage from '@/components/IFramePage';
+import { AgentUrl } from '@/utils/constant';
+
+function MineAgent() {
+ return ;
+}
+
+export default MineAgent;
diff --git a/react-ui/src/pages/Agent/Model/index.tsx b/react-ui/src/pages/Agent/Model/index.tsx
new file mode 100644
index 00000000..021badcd
--- /dev/null
+++ b/react-ui/src/pages/Agent/Model/index.tsx
@@ -0,0 +1,8 @@
+import IframePage from '@/components/IFramePage';
+import { AgentUrl } from '@/utils/constant';
+
+function AgentModel() {
+ return ;
+}
+
+export default AgentModel;
diff --git a/react-ui/src/pages/Agent/Plugin/index.tsx b/react-ui/src/pages/Agent/Plugin/index.tsx
new file mode 100644
index 00000000..26eabbd5
--- /dev/null
+++ b/react-ui/src/pages/Agent/Plugin/index.tsx
@@ -0,0 +1,8 @@
+import IframePage from '@/components/IFramePage';
+import { AgentUrl } from '@/utils/constant';
+
+function AgentPlugin() {
+ return ;
+}
+
+export default AgentPlugin;
diff --git a/react-ui/src/pages/Agent/Publish/index.tsx b/react-ui/src/pages/Agent/Publish/index.tsx
new file mode 100644
index 00000000..0ad0a296
--- /dev/null
+++ b/react-ui/src/pages/Agent/Publish/index.tsx
@@ -0,0 +1,8 @@
+import IframePage from '@/components/IFramePage';
+import { AgentUrl } from '@/utils/constant';
+
+function AgentPublish() {
+ return ;
+}
+
+export default AgentPublish;
diff --git a/react-ui/src/pages/Agent/Resource/index.tsx b/react-ui/src/pages/Agent/Resource/index.tsx
new file mode 100644
index 00000000..5e1e99fd
--- /dev/null
+++ b/react-ui/src/pages/Agent/Resource/index.tsx
@@ -0,0 +1,8 @@
+import IframePage from '@/components/IFramePage';
+import { AgentUrl } from '@/utils/constant';
+
+function AgentPublish() {
+ return ;
+}
+
+export default AgentPublish;
diff --git a/react-ui/src/utils/constant.ts b/react-ui/src/utils/constant.ts
index a642f950..4991e53a 100644
--- a/react-ui/src/utils/constant.ts
+++ b/react-ui/src/utils/constant.ts
@@ -23,3 +23,6 @@ export const ExperimentCompleted = 'ExperimentCompleted';
// 首页地址
export const HomeUrl = '/workspace';
+
+// 讯飞智能体
+export const AgentUrl = 'http://localhost:5173';