diff --git a/dashboard/src/routes/config/model.tsx b/dashboard/src/routes/config/model.tsx index ab404edc..5f82d9e7 100644 --- a/dashboard/src/routes/config/model.tsx +++ b/dashboard/src/routes/config/model.tsx @@ -58,9 +58,13 @@ import { SharePackDialog } from '@/components/share-pack-dialog' // 导入模块化的类型定义和组件 import type { ModelInfo, ProviderConfig, ModelTaskConfig, TaskConfig } from './model/types' -import { TaskConfigCard, Pagination, ModelTable, ModelCardList } from './model/components' +import { Pagination, ModelTable, ModelCardList } from './model/components' import { useModelTour, useModelFetcher, useModelAutoSave } from './model/hooks' +// 导入动态表单和 Hook 系统 +import { DynamicConfigForm } from '@/components/dynamic-form' +import { fieldHooks } from '@/lib/field-hooks' + // 主导出组件:包装 RestartProvider export function ModelConfigPage() { return ( @@ -918,101 +922,22 @@ function ModelConfigPageContent() {
{taskConfig && ( -