From c85e1528d45bc959f568790d1e71e793952d893a Mon Sep 17 00:00:00 2001 From: ZLY Date: Fri, 16 Jan 2026 11:38:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(flowEditor):=20=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=BE=B9=E6=A0=87=E7=AD=BE=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E4=B8=AD=E7=9A=84=E7=B1=BB=E5=9E=8B=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/components/customEdge.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/flowEditor/components/customEdge.tsx b/src/pages/flowEditor/components/customEdge.tsx index 5b0b734..31eee9b 100644 --- a/src/pages/flowEditor/components/customEdge.tsx +++ b/src/pages/flowEditor/components/customEdge.tsx @@ -112,7 +112,10 @@ const DataDisplayEdge: React.FC = ({ // 获取智能位置(支持手动覆盖) const smartPosition = data?.labelPosition - ? { x: sourceX + (targetX - sourceX) * data.labelPosition, y: sourceY + (targetY - sourceY) * data.labelPosition } + ? { + x: sourceX + (targetX - sourceX) * (data.labelPosition as number), + y: sourceY + (targetY - sourceY) * (data.labelPosition as number) + } : calculateSmartLabelPosition(); // 边点击处理函数