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