From f951263c095b934ca3a1d42e80cfcc8473e1f248 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 16 May 2022 10:37:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E7=9A=84html=20group=20=E5=8A=A0=E8=BD=BD=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chartList.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/chart/chartList.vue b/nezha-fronted/src/components/chart/chartList.vue index c2f308d8b..936eacc76 100644 --- a/nezha-fronted/src/components/chart/chartList.vue +++ b/nezha-fronted/src/components/chart/chartList.vue @@ -435,11 +435,6 @@ export default { this.$store.commit('setChartListId', `chartList${this.timestamp}`) window.addEventListener('resize', this.resize) } - if (this.isExportHtml) { - setTimeout(() => { - this.onScroll(999999) - }, 500) - } }, beforeDestroy () { window.removeEventListener('resize', this.resize) @@ -509,8 +504,10 @@ export default { tempList = null setTimeout(() => { this.gridLayoutShow = true - if (!this.isGroup) { + if (!this.isGroup && !this.isExportHtml) { this.onScroll() + } else { + this.onScroll(999999) } }) setTimeout(() => {