fix: 优化页面销毁时对echarts实例的销毁
This commit is contained in:
@@ -633,8 +633,9 @@ export default {
|
||||
beforeUnmount () {
|
||||
clearTimeout(this.timer)
|
||||
window.removeEventListener('resize', this.resize)
|
||||
this.myChart = null
|
||||
this.myChart = null
|
||||
if (this.myChart) {
|
||||
echarts.dispose(this.myChart)
|
||||
}
|
||||
this.unitConvert = null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user