From 862080357b4ffaae1c264a88aa6a8dee2bb4cce6 Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 13 Nov 2025 09:56:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(flowEditor):=E4=BF=AE=E5=A4=8D=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E8=BE=93=E5=87=BA=E4=BD=8D=E7=BD=AE=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将数据输出位置计算中的 apiOuts 长度替换为 apiIns 长度 - 确保输出接口基于正确的输入数量进行定位 - 修复了因长度引用错误导致的界面显示异常问题 --- src/pages/flowEditor/components/nodeContentOther.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index 32db837..acb4b9f 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -70,7 +70,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data id={dataOuts[index].name || `output-${index}`} style={{ ...handleStyles.data, - top: `${70 + apiOuts.length * 20 + index * 20}px` + top: `${70 + apiIns.length * 20 + index * 20}px` }} /> ))} @@ -171,7 +171,7 @@ const renderRegularNodeHandles = (dataIns: any[], dataOuts: any[], apiIns: any[] id={dataOuts[index].name || dataOuts[index].id || `output-${index}`} style={{ ...handleStyles.data, - top: `${70 + (apiOuts.length + index) * 20}px` + top: `${70 + (apiIns.length + index) * 20}px` }} /> ))}