fix:alertMessage chart添加监听窗口变化的事件
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user