From a050cf6c7c7f4497176ac2160c8c15a1872cabfe Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Fri, 28 Jun 2024 11:12:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9E=E4=BD=93=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E5=9B=BE=E4=BC=98=E5=8C=96=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= =?UTF-8?q?:=E5=AF=B9=E4=BA=8E=E7=BB=88=E7=82=B9=E4=B8=BAroot=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E7=9A=84=E8=BF=9E=E7=BA=BF=E7=9A=84=E7=AE=AD=E5=A4=B4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=85=A8=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index f8ecdd61..c4902a97 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -232,7 +232,7 @@ export default { const end = link.target let width = 1 // 线宽 const arrowSize = 3 // 箭头大小 - const shortenedLength = 20 // link 末端缩短长度 + const shortenedLength = end.type === nodeType.rootNode ? 23 : 20 // link 末端缩短长度,root节点特殊处理 // 计算箭头角度 const dx = end.x - start.x