Merge pull request #5592 from dataease/pr@dev_st_fix

Pr@dev st fix
This commit is contained in:
dataeaseShu 2023-07-06 10:01:53 +08:00 committed by GitHub
commit 57764c7679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,9 @@ export default {
},
beforeDestroy() {
if (this.myChart.container) {
clear(this.myChart.container)
if (typeof this.myChart.container.getAttribute === 'function') {
clear(this.myChart.container)
}
}
this.myChart?.clear?.()
this.myChart?.unbindSizeSensor?.()