From 86e23f0fe8a0dea91c8502ce4b68fff5f3718ce1 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 8 Dec 2022 17:24:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=88=87=E6=8D=A2=E5=AF=BC=E8=87=B4=E7=9A=84npm=20eve?= =?UTF-8?q?nts=20=E9=A5=BC=E5=9B=BE=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmEventsByType.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmEventsByType.vue b/src/views/charts2/charts/npm/NpmEventsByType.vue index d9578ab5..91892ace 100644 --- a/src/views/charts2/charts/npm/NpmEventsByType.vue +++ b/src/views/charts2/charts/npm/NpmEventsByType.vue @@ -6,7 +6,7 @@
-
+
@@ -58,7 +58,6 @@ export default { data () { return { chartData: [], - timer: null, isNoData: false, showError: false, errorMsg: '' @@ -146,13 +145,10 @@ export default { } }, mounted () { - this.timer = setTimeout(() => { - this.eventsByTypeData() - }, 100) + this.eventsByTypeData() window.addEventListener('resize', this.resize) }, beforeUnmount () { - clearTimeout(this.timer) window.removeEventListener('resize', this.resize) this.myChart = null this.chartOption = null