From 1492fe217c9bcaed82001a63fd4727c0f7a0a58e Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 11 Aug 2023 10:43:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=93=E5=B1=95=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E6=97=B6=E5=A2=9E=E5=8A=A0=E9=99=90=E5=88=B6=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=95=B0=E9=87=8F=E5=A4=A7=E4=BA=8E=E7=AD=89=E4=BA=8E?= =?UTF-8?q?=E6=80=BB=E6=95=B0=E6=97=B6=E4=B8=8D=E5=81=9A=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/entityExplorer/EntityGraph.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 4a6b5607..bd3d5daa 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -964,6 +964,9 @@ export default { const sourceNode = this.graph.findById(model.sourceNode.id) const sourceModel = sourceNode.getModel() const expandType = model.myData.entityType + if (sourceModel.myData.relatedEntity[expandType].list.length >= sourceModel.myData.relatedEntity[expandType].total) { + return + } if (sourceModel.myData.relatedEntity[expandType].list.length < 50) { this.rightBox.loading = true try { @@ -1000,6 +1003,9 @@ export default { const node = this.graph.findById(nodeId) if (node) { const nodeModel = node.getModel() + if (nodeModel.myData.relatedEntity[expandType].list.length >= nodeModel.myData.relatedEntity[expandType].total) { + return + } if (nodeModel.myData.relatedEntity[expandType].list.length < 50) { const toAddNodeModels = [] const toAddEdgeModels = []