From 1f1b1cb75d8de2e335a70f9073ffb0dc04ff91a9 Mon Sep 17 00:00:00 2001 From: JiaMing <743192023@qq.com> Date: Thu, 24 Oct 2019 10:22:03 +0800 Subject: [PATCH] Optimize memory leaks --- src/components/activeRingChart/src/main.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/activeRingChart/src/main.vue b/src/components/activeRingChart/src/main.vue index c4435fd..63e75ef 100644 --- a/src/components/activeRingChart/src/main.vue +++ b/src/components/activeRingChart/src/main.vue @@ -174,7 +174,7 @@ export default { const option = getRingOption() - chart.setOption(option) + chart.setOption(option, true) ringAnimation() }, @@ -236,7 +236,7 @@ export default { } }) - chart.setOption(option) + chart.setOption(option, true) const { activeTimeGap } = option.series[0]