From d3dc2daed9ccb9c553322de9b68fbc9c32d29887 Mon Sep 17 00:00:00 2001 From: duanhao Date: Fri, 1 Aug 2025 16:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=B9=E6=9D=83=E9=87=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/llinkPrediction/index.js | 5 +- .../socialGroups/components/detailNode.vue | 57 +++++++++++++++---- 2 files changed, 49 insertions(+), 13 deletions(-) diff --git a/src/store/llinkPrediction/index.js b/src/store/llinkPrediction/index.js index 2ffd87b..016308a 100644 --- a/src/store/llinkPrediction/index.js +++ b/src/store/llinkPrediction/index.js @@ -469,8 +469,9 @@ export const useSocialGroupsStore = defineStore("socialGroups", { customStatisticsObj.hiddenInteractionCount == null ) { customStatisticsObj.hiddenInteractionCount = 1 - - customStatisticsObj.groupCount = ids[0] === ids[1] ? 1 : 3 + // 创建一个Set来获取不重复的ids + const uniqueIds = new Set(ids); + customStatisticsObj.groupCount = uniqueIds.size; } this.statisticsDetailList = this.statisticsDetailList.map((item) => ({ diff --git a/src/views/LinkPrediction/socialGroups/components/detailNode.vue b/src/views/LinkPrediction/socialGroups/components/detailNode.vue index c3085cc..9797160 100644 --- a/src/views/LinkPrediction/socialGroups/components/detailNode.vue +++ b/src/views/LinkPrediction/socialGroups/components/detailNode.vue @@ -56,7 +56,7 @@