Optimize memory leaks
This commit is contained in:
parent
2ca217a8af
commit
0b270cda52
|
@ -35,7 +35,7 @@ export default {
|
||||||
|
|
||||||
if (!option) option = {}
|
if (!option) option = {}
|
||||||
|
|
||||||
chart.setOption(option)
|
chart.setOption(option, true)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -165,6 +165,8 @@ export default {
|
||||||
graph.animationCurve = animationCurve
|
graph.animationCurve = animationCurve
|
||||||
graph.animationFrame = animationFrame
|
graph.animationFrame = animationFrame
|
||||||
|
|
||||||
|
graph.animationEnd()
|
||||||
|
|
||||||
graph.animation('style', style, true)
|
graph.animation('style', style, true)
|
||||||
graph.animation('shape', shape)
|
graph.animation('shape', shape)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue