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-pie/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-pie/index.jsx b/src/tabviews/custom/components/chart/antv-pie/index.jsx index ade94bc..a660890 100644 --- a/src/tabviews/custom/components/chart/antv-pie/index.jsx +++ b/src/tabviews/custom/components/chart/antv-pie/index.jsx @@ -248,10 +248,17 @@ let result = await Api.genericInterface(param) if (result.status) { + let reset = true + + if (hastimer && is(fromJS(result.data), fromJS(this.state.data))) { + reset = false + } + this.setState({ data: result.data, loading: false }, () => { + if (!reset) return this.handleData() }) } else { -- Gitblit v1.8.0