fix:修改explore快照 监听 el。reszie 改为 window。reszie

This commit is contained in:
zhangyu
2023-04-12 14:25:00 +08:00
parent 998c4062fb
commit 8d17612f76

View File

@@ -164,6 +164,7 @@ export default {
}
this.chartUnit = this.dataJson.unit || 1
this.expressionChange()
window.addEventListener('resize', this.logsCollapseChange)
},
methods: {
logsCollapseChange (activeNames, a, b) {
@@ -562,6 +563,9 @@ export default {
this.expressionChange()
}
}
},
beforeDestroy () {
window.removeEventListener('resize', this.logsCollapseChange)
}
}
</script>