From 26324541937ddd4dba7b65b80638862545a941d0 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 16 Jun 2022 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1914=20perf=EF=BC=9Adashboard=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=94=80=E6=AF=81=E5=89=8D=E6=B8=85=E9=99=A4tooltip?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/dashboard/panel.vue | 3 +++ nezha-fronted/src/store/panel.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 },