From 71b9507c5123c7bcc9485fb16479f62f52f98898 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 13 Dec 2024 12:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E5=85=B7=E6=A0=8F?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Workflow/Definition/Design/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,