diff --git a/frontend/src/pages/Workflow/Definition/Design/index.tsx b/frontend/src/pages/Workflow/Definition/Design/index.tsx index 0a20df13..23f721dc 100644 --- a/frontend/src/pages/Workflow/Definition/Design/index.tsx +++ b/frontend/src/pages/Workflow/Definition/Design/index.tsx @@ -120,12 +120,12 @@ const WorkflowDesign: React.FC = () => { }; // 注册节点类型 - Graph.registerNode(nodeData.code, nodeConfig, true); + Graph.registerNode(nodeData.id, nodeConfig, true); // 创建节点 const node = graphInstance.addNode({ id: nodeData.id, - shape: nodeData.code, + shape: nodeData.id, position: nodeData.graph.position || { x: 100, y: 100 }, attrs: { body: nodeData.graph.style,