From 7f3cb9b71d6c7625c6db99fe3fad491ad153b58d Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 8 Jul 2024 18:36:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E6=8B=93=E5=B1=95=E8=8A=82=E7=82=B9=E6=97=B6=E7=9A=84=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=EF=BC=8C=E9=81=BF=E5=85=8D=E9=97=AA=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index c4902a97..ee5fe45e 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -1043,7 +1043,9 @@ export default { entities.list.forEach(entity => { const toAddNode = new Node(nodeType.entityNode, entity.vertex, { entityType: expandType, - entityName: entity.vertex + entityName: entity.vertex, + x: node.x + Math.random() * 10 - 5, + y: node.y + Math.random() * 10 - 5 }, node, this.getIconUrl(node.data.entityType, false, false)) toAddNodes.push(toAddNode) @@ -1091,7 +1093,9 @@ export default { entities.list.forEach(entity => { const entityNode = new Node(nodeType.entityNode, entity.vertex, { entityType: expandType, - entityName: entity.vertex + entityName: entity.vertex, + x: listNode.x + Math.random() * 10 - 5, + y: listNode.y + Math.random() * 10 - 5 }, listNode, this.getIconUrl(expandType, false, false)) toAddNodes.push(entityNode) toAddLinks.push(new Link(listNode, entityNode))