From 75714aa849c8c0d985581ee6d00799c6f9431c6f Mon Sep 17 00:00:00 2001 From: ZLY Date: Fri, 6 Feb 2026 14:54:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(flowEditor):=20=E4=BF=AE=E5=A4=8D=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=8F=A5=E6=9F=84ID=E7=94=9F=E6=88=90=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/components/nodeContentOther.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index 5ffe32b..1bd642f 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -48,7 +48,6 @@ const handleStyles = { const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, dataIns: any[], dataOuts: any[], apiIns: any[], apiOuts: any[]) => { const renderStartNodeHandles = () => { if (!isStartNode) return null; - return ( <> {apiOuts.map((_, index) => ( @@ -68,7 +67,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data key={`output-handle-${index}`} type="source" position={Position.Right} - id={dataOuts[index].name || `output-${index}`} + id={dataOuts[index].name || dataOuts[index].id || `output-${index}`} style={{ ...handleStyles.data, top: `${70 + apiIns.length * 20 + index * 20}px` @@ -81,7 +80,6 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data const renderEndNodeHandles = () => { if (!isEndNode) return null; - return ( <> {apiIns.map((_, index) => ( @@ -101,7 +99,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data key={`input-handle-${index}`} type="target" position={Position.Left} - id={dataIns[index].name || `input-${index}`} + id={dataIns[index].name || dataIns[index].id || `input-${index}`} style={{ ...handleStyles.data, top: `${70 + apiIns.length * 20 + index * 20}px` @@ -298,8 +296,6 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { } }); - console.log('connectedIns, connectedOuts:', connectedIns, connectedOuts); - return { connectedIns, connectedOuts }; }, [edges, nodeId, apiIns, apiOuts, dataIns, dataOuts]);