From 4577684fe2d7e9a699312c40870675f004c37281 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Fri, 16 Dec 2022 10:12:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=B6=88=E6=AF=81=E6=97=B6=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue | 3 +++ src/views/charts2/charts/npm/NpmLine.vue | 1 + src/views/charts2/charts/npm/NpmTrafficLine.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue index 51e593fc..1deb5469 100644 --- a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue +++ b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue @@ -516,6 +516,9 @@ export default { beforeUnmount () { clearTimeout(this.timer) window.removeEventListener('resize', this.resize) + this.myChart = null + this.chartOption = null + this.unitConvert = null } } diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index d3f599f6..64abfd25 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -338,6 +338,7 @@ export default { clearTimeout(this.timer) window.removeEventListener('resize', this.resize) this.myChart = null + this.chartOption = null } } diff --git a/src/views/charts2/charts/npm/NpmTrafficLine.vue b/src/views/charts2/charts/npm/NpmTrafficLine.vue index c5ea0f0b..a24fc11b 100644 --- a/src/views/charts2/charts/npm/NpmTrafficLine.vue +++ b/src/views/charts2/charts/npm/NpmTrafficLine.vue @@ -671,6 +671,8 @@ export default { clearTimeout(this.timer) window.removeEventListener('resize', this.resize) this.myChart = null + this.myChart = null + this.unitConvert = null } }