From d4f459860c4a3971cdf9e9a4dd1f97baab348516 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Sun, 26 Sep 2021 18:01:10 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1005=20fix=EF=BC=9A=20=E4=B8=8B=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E7=9A=84logs=20noData=20=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/logBottomTab.vue | 14 +++++----- .../page/dashboard/explore/logTab.vue | 27 ++++++++++++------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue index ee603e5f9..0e7f5dc84 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue @@ -22,12 +22,8 @@ @@ -49,7 +45,7 @@ export default { }, data () { return { - logData: [], + logData: null, filterTime: [ bus.timeFormate(bus.getOffsetTimezoneData(-1), 'yyyy-MM-dd hh:mm:ss'), bus.timeFormate(bus.getOffsetTimezoneData(), 'yyyy-MM-dd hh:mm:ss') @@ -126,7 +122,9 @@ export default { } else if (this.from === fromRoute.asset) { this.expressions = [`{asset="${this.obj.name}"}`] } - this.queryLogData() + this.$nextTick(()=>{ + this.queryLogData() + }) } } diff --git a/nezha-fronted/src/components/page/dashboard/explore/logTab.vue b/nezha-fronted/src/components/page/dashboard/explore/logTab.vue index 3029a3f72..871bcc4c0 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/logTab.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/logTab.vue @@ -1,7 +1,7 @@