From 9ff920b4b4219fbae6a58b49408da1fb5abfa3ba Mon Sep 17 00:00:00 2001 From: "qumeng039@126.com" <86925389+qumen@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AD=A6=E5=91=8A=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 | 4 ++-- src/views/LinkPrediction/components/detailNode.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/llinkPrediction/index.js b/src/store/llinkPrediction/index.js index 0d9d0c2..5510b55 100644 --- a/src/store/llinkPrediction/index.js +++ b/src/store/llinkPrediction/index.js @@ -199,7 +199,7 @@ export const useCharacterInteractionStore = defineStore("characterInteraction", })) this.communityDetailNodeRelation = res.data.userRelation this.communityDetailNodeList = res.data.userList - this.timeList = res.data.timeList + this.timeList = Array.from(new Set(res.data.timeList)) this.predictionUserIds = res.data.predictNodes }, //初始化社团统计数据 @@ -678,7 +678,7 @@ export const useCharacterHiddenStore = defineStore("characterHidden", { })) this.communityDetailNodeRelation = res.data.userRelation this.communityDetailNodeList = res.data.userList - this.timeList = res.data.timeList + this.timeList = Array.from(new Set(res.data.timeList)) this.predictionUserIds = res.data.predictNodes } }, diff --git a/src/views/LinkPrediction/components/detailNode.vue b/src/views/LinkPrediction/components/detailNode.vue index ca29b26..b7432e0 100644 --- a/src/views/LinkPrediction/components/detailNode.vue +++ b/src/views/LinkPrediction/components/detailNode.vue @@ -287,10 +287,10 @@ onUnmounted(() => { }) let chart = null - const initChart = async () => { - chart = echarts.init(document.getElementById("container")) - + if (chart == null) { + chart = echarts.init(document.getElementById("container")) + } const links = [] let nodes = [] const edgeWidth = (interactionTime) => {