From d6270296f0f5c816fdc36557043e9d7c8d15d2f7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 十月 2021 16:58:44 +0800 Subject: [PATCH] 2021-10-20 --- src/tabviews/custom/components/chart/antv-dashboard/index.jsx | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-dashboard/index.jsx b/src/tabviews/custom/components/chart/antv-dashboard/index.jsx index fb6dbb2..5f64a9e 100644 --- a/src/tabviews/custom/components/chart/antv-dashboard/index.jsx +++ b/src/tabviews/custom/components/chart/antv-dashboard/index.jsx @@ -289,11 +289,17 @@ data.value = result.data[0][config.plot.valueField] } } + let reset = true + + if (hastimer && is(fromJS(data), fromJS(this.state.data))) { + reset = false + } this.setState({ data, loading: false }, () => { + if (!reset) return this.handleData() }) } else { -- Gitblit v1.8.0