fix:修改explore快照 监听 el。reszie 改为 window。reszie
This commit is contained in:
@@ -164,6 +164,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.chartUnit = this.dataJson.unit || 1
|
this.chartUnit = this.dataJson.unit || 1
|
||||||
this.expressionChange()
|
this.expressionChange()
|
||||||
|
window.addEventListener('resize', this.logsCollapseChange)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logsCollapseChange (activeNames, a, b) {
|
logsCollapseChange (activeNames, a, b) {
|
||||||
@@ -562,6 +563,9 @@ export default {
|
|||||||
this.expressionChange()
|
this.expressionChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
beforeDestroy () {
|
||||||
|
window.removeEventListener('resize', this.logsCollapseChange)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user