From 0b270cda523dcab5968e501018c3a3a8a7af83bc Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Thu, 24 Oct 2019 14:09:32 +0800 Subject: [PATCH] Optimize memory leaks --- src/components/charts/src/main.vue | 2 +- src/components/digitalFlop/src/main.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/charts/src/main.vue b/src/components/charts/src/main.vue index cda8d70..2d742ef 100644 --- a/src/components/charts/src/main.vue +++ b/src/components/charts/src/main.vue @@ -35,7 +35,7 @@ export default { if (!option) option = {} - chart.setOption(option) + chart.setOption(option, true) } }, methods: { diff --git a/src/components/digitalFlop/src/main.vue b/src/components/digitalFlop/src/main.vue index c2415d3..295f101 100644 --- a/src/components/digitalFlop/src/main.vue +++ b/src/components/digitalFlop/src/main.vue @@ -165,6 +165,8 @@ export default { graph.animationCurve = animationCurve graph.animationFrame = animationFrame + graph.animationEnd() + graph.animation('style', style, true) graph.animation('shape', shape) },