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) => {