diff --git a/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx b/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx index f1e93e36..20b13291 100644 --- a/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx +++ b/frontend/src/pages/Workflow/Definition/Designer/components/NodeConfig/index.tsx @@ -86,58 +86,123 @@ const NodeConfig: React.FC = ({ nodeType, form, onValuesChange ); + // 渲染网关节点配置 + const renderGatewayConfig = () => { + if (!nodeType.code?.includes('GATEWAY')) return null; + + return ( + + + + ); + }; + // 渲染Shell执行器特定配置 const renderShellExecutorConfig = () => { - if (selectedExecutor !== 'SHELL') return null; + if (!nodeType.code?.includes('SHELL')) return null; return ( <> - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + )} ); }; @@ -151,21 +216,8 @@ const NodeConfig: React.FC = ({ nodeType, form, onValuesChange > {renderBasicFormItems()} - - -