From e467c2b5fcc35afa6c4323091748d1ff71e7decf Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 11 May 2025 14:05:55 +0800 Subject: [PATCH] perf: tab name in pipeline config --- .../components/pipeline-form/PipelineFormComponent.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx index 5e20fe3c..6b73a9db 100644 --- a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx +++ b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx @@ -75,17 +75,13 @@ export default function PipelineFormComponent({ const formLabelList: FormLabel[] = isEditMode ? [ { label: '基础信息', name: 'basic' }, - { label: 'AI能力', name: 'ai' }, + { label: 'AI 能力', name: 'ai' }, { label: '触发条件', name: 'trigger' }, - { label: '安全能力', name: 'safety' }, + { label: '安全控制', name: 'safety' }, { label: '输出处理', name: 'output' }, ] : [{ label: '基础信息', name: 'basic' }]; - // const [basicForm] = Form.useForm(); - // const [aiForm] = Form.useForm(); - // const [triggerForm] = Form.useForm(); - // const [safetyForm] = Form.useForm(); - // const [outputForm] = Form.useForm(); + const [aiConfigTabSchema, setAIConfigTabSchema] = useState(); const [triggerConfigTabSchema, setTriggerConfigTabSchema] =