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/custom-chart/index.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/chart/custom-chart/index.jsx b/src/tabviews/custom/components/chart/custom-chart/index.jsx index d72aae8..9ae9cd1 100644 --- a/src/tabviews/custom/components/chart/custom-chart/index.jsx +++ b/src/tabviews/custom/components/chart/custom-chart/index.jsx @@ -279,11 +279,18 @@ 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, empty: result.data.length === 0 }, () => { + if (!reset) return this.handleData() }) } else { -- Gitblit v1.8.0