From fe72d25834d32bb6ad4459e0bdda057cd87625fd Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Thu, 15 Dec 2022 14:12:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddns=20=E4=B8=8B?= =?UTF-8?q?=E9=92=BB=E6=8A=98=E7=BA=BF=E5=9B=BE=20tab=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../charts2/charts/dnsInsight/DnsTrafficLine.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue index 0acbab43..51e593fc 100644 --- a/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue +++ b/src/views/charts2/charts/dnsInsight/DnsTrafficLine.vue @@ -279,14 +279,14 @@ export default { }) }, echartsInit (echartsData, show) { - if (this.lineTab) { - this.handleActiveBar() - echartsData = echartsData.filter(t => t.show === true && t.invertTab === false) - } else { - echartsData = echartsData.filter(t => t.show === true) - } - const _this = this this.$nextTick(() => { + if (this.lineTab) { + this.handleActiveBar() + echartsData = echartsData.filter(t => t.show === true && t.invertTab === false) + } else { + echartsData = echartsData.filter(t => t.show === true) + } + const _this = this if (echartsData.length > 0) { const dom = document.getElementById('dnsLineChart') !this.myChart && (this.myChart = echarts.init(dom))