Optimize memory leaks
This commit is contained in:
@ -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)
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user