From 250fb2eb500afc489eb7126df0872ffbe3c125b0 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 17 Oct 2023 13:45:39 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=85=B3?= =?UTF-8?q?=E8=81=94=E7=BA=BF=E6=8F=92=E4=BB=B6computeNodePoints=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=BF=94=E5=9B=9Eundefined=E6=97=B6=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/associativeLine/associativeLineUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js b/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js index 12888906..38d52ffc 100644 --- a/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js +++ b/simple-mind-map/src/plugins/associativeLine/associativeLineUtils.js @@ -202,7 +202,7 @@ export const computeNodePoints = (fromNode, toNode) => { // 中心点坐标的差值 let offsetX = toCx - fromCx let offsetY = toCy - fromCy - if (offsetX === 0 && offsetY === 0) return + if (offsetX === 0 && offsetY === 0) return [] let fromDir = '' let toDir = '' if (offsetX <= 0 && offsetX <= offsetY && offsetX <= -offsetY) {