Optimize memory leaks

This commit is contained in:
JiaMing 2019-10-24 14:09:32 +08:00
parent 2ca217a8af
commit 0b270cda52
2 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default {
if (!option) option = {}
chart.setOption(option)
chart.setOption(option, true)
}
},
methods: {

View File

@ -165,6 +165,8 @@ export default {
graph.animationCurve = animationCurve
graph.animationFrame = animationFrame
graph.animationEnd()
graph.animation('style', style, true)
graph.animation('shape', shape)
},