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 @@