fix: 优化页面销毁时对echarts实例的销毁
This commit is contained in:
@@ -703,7 +703,9 @@ export default {
|
||||
if (myChart) {
|
||||
echarts.dispose(myChart)
|
||||
}
|
||||
this.myChart = null
|
||||
if (this.myChart) {
|
||||
echarts.dispose(this.myChart)
|
||||
}
|
||||
// 检测时发现该方法占用较大内存,且未被释放
|
||||
this.unitConvert = null
|
||||
myChart = null
|
||||
|
||||
Reference in New Issue
Block a user