From 5ae2e751701c366eaff5ea9885184d0470cb4f94 Mon Sep 17 00:00:00 2001 From: Anderson Date: Tue, 25 Sep 2018 14:19:49 +0800 Subject: [PATCH] Update Analysis.js delete this.state --- src/pages/Dashboard/Analysis.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/Dashboard/Analysis.js b/src/pages/Dashboard/Analysis.js index a6fabc10..7bca5de3 100644 --- a/src/pages/Dashboard/Analysis.js +++ b/src/pages/Dashboard/Analysis.js @@ -58,14 +58,14 @@ class Analysis extends Component { total: 323234, }); } - this.state = { - salesType: 'all', - currentTabKey: '', - loading: true, - rangePickerValue: getTimeDistance('year'), - }; } + state = { + salesType: 'all', + currentTabKey: '', + rangePickerValue: getTimeDistance('year'), + }; + componentDidMount() { const { dispatch } = this.props; this.reqRef = requestAnimationFrame(() => { -- GitLab