From c5976c83ee42bec79c47c8601929bbbaac71e636 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 15 Jun 2022 17:02:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AalertMessage=20chart=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=9B=91=E5=90=AC=E7=AA=97=E5=8F=A3=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E7=9A=84=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/alert/alertMessageInfo.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue index c35866045..b25c22723 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue @@ -348,6 +348,10 @@ export default { this.chartInfo.loaded && this.getChartData() this.showAllData = !this.showMultiple(this.chartInfo.type) this.getAlertMessageInfo() + window.addEventListener('resize', this.resize) + }, + destroyed() { + window.removeEventListener('resize', this.resize) } }