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) } }