Browse Source

feat: 调整服务的路由

pull/177/head
cp3hnu 11 months ago
parent
commit
90204e3210
3 changed files with 41 additions and 40 deletions
  1. +39
    -38
      react-ui/config/routes.ts
  2. +1
    -1
      react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx
  3. +1
    -1
      react-ui/src/pages/Workspace/components/QuickStart/index.tsx

+ 39
- 38
react-ui/config/routes.ts View File

@@ -291,60 +291,61 @@ export default [
}, },
], ],
}, },
],
},
{
name: '模型部署',
path: '/modelDeployment',
routes: [
{ {
name: '模型部署', name: '模型部署',
path: '',
component: './ModelDeployment/List',
},
{
name: '创建推理服务',
path: 'createService',
component: './ModelDeployment/CreateService',
},
{
name: '编辑推理服务',
path: 'editService/:serviceId',
component: './ModelDeployment/CreateService',
},
{
name: '服务详情',
path: 'serviceInfo/:serviceId',
path: 'modelDeployment',
routes: [ routes: [
{ {
name: '服务详情',
name: '模型部署',
path: '', path: '',
component: './ModelDeployment/ServiceInfo',
component: './ModelDeployment/List',
}, },
{ {
name: '新增服务版本',
path: 'createVersion',
component: './ModelDeployment/CreateVersion',
name: '创建推理服务',
path: 'createService',
component: './ModelDeployment/CreateService',
}, },
{ {
name: '更新服务版本',
path: 'updateVersion',
component: './ModelDeployment/CreateVersion',
name: '编辑推理服务',
path: 'editService/:serviceId',
component: './ModelDeployment/CreateService',
}, },
{ {
name: '重启服务版本',
path: 'restartVersion',
component: './ModelDeployment/CreateVersion',
},
{
name: '服务版本详情',
path: 'versionInfo/:id',
component: './ModelDeployment/VersionInfo',
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',
},
],
}, },
], ],
}, },
], ],
}, },

{ {
name: '应用开发', name: '应用开发',
path: '/appsDeployment', path: '/appsDeployment',


+ 1
- 1
react-ui/src/pages/ModelDeployment/CreateVersion/index.tsx View File

@@ -168,7 +168,7 @@ function CreateServiceVersion() {
if (lastPage === CreateServiceVersionFrom.ServiceInfo) { if (lastPage === CreateServiceVersionFrom.ServiceInfo) {
navigate(-1); navigate(-1);
} else { } else {
navigate(`/modelDeployment/serviceInfo/${serviceId}`, { replace: true });
navigate(`/dataset/modelDeployment/serviceInfo/${serviceId}`, { replace: true });
} }
} }
}; };


+ 1
- 1
react-ui/src/pages/Workspace/components/QuickStart/index.tsx View File

@@ -92,7 +92,7 @@ function QuickStart() {
buttonTop={20} buttonTop={20}
x={left + 4 * (192 + space) + 60 + space} x={left + 4 * (192 + space) + 60 + space}
y={263} y={263}
onClick={() => navigate('/modelDeployment')}
onClick={() => navigate('/dataset/modelDeployment')}
/> />
<div <div
className={styles['quick-start__content__canvas__model']} className={styles['quick-start__content__canvas__model']}


Loading…
Cancel
Save