forked from github/dataease
fix: g2报错
This commit is contained in:
parent
afb785d4ab
commit
cfcb5c5df4
@ -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?.()
|
||||
|
Loading…
Reference in New Issue
Block a user