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 @@