diff --git a/nezha-fronted/src/components/page/dashboard/panel.vue b/nezha-fronted/src/components/page/dashboard/panel.vue index 2e3fec475..ec3a4fa9a 100644 --- a/nezha-fronted/src/components/page/dashboard/panel.vue +++ b/nezha-fronted/src/components/page/dashboard/panel.vue @@ -1121,6 +1121,9 @@ export default { if (!document.onmousemove) { // 添加鼠标移动事件监听 document.onmousemove = null } + this.$store.commit('setCurrentMousemove', 0) + this.$store.commit('setConnect', 'none') + echarts.disconnect('timeSeriesGroup') } } diff --git a/nezha-fronted/src/store/panel.js b/nezha-fronted/src/store/panel.js index 60fa81af4..03558711b 100644 --- a/nezha-fronted/src/store/panel.js +++ b/nezha-fronted/src/store/panel.js @@ -21,7 +21,7 @@ const panel = { // 查看模式 mode: '', // timeSeries类型图表联动 - isConnect: false, + isConnect: 'none', // 当前鼠标所在的图表id currentMousemove: 0 },