fix:alertMessage chart添加监听窗口变化的事件

This commit is contained in:
zhangyu
2022-06-15 17:02:18 +08:00
parent b12c61e1dd
commit c5976c83ee

View File

@@ -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)
}
}
</script>