Commit 5ae2e751 authored by Anderson's avatar Anderson Committed by 陈帅

Update Analysis.js

delete this.state
parent e1a30aa7
...@@ -58,14 +58,14 @@ class Analysis extends Component { ...@@ -58,14 +58,14 @@ class Analysis extends Component {
total: 323234, total: 323234,
}); });
} }
this.state = {
salesType: 'all',
currentTabKey: '',
loading: true,
rangePickerValue: getTimeDistance('year'),
};
} }
state = {
salesType: 'all',
currentTabKey: '',
rangePickerValue: getTimeDistance('year'),
};
componentDidMount() { componentDidMount() {
const { dispatch } = this.props; const { dispatch } = this.props;
this.reqRef = requestAnimationFrame(() => { this.reqRef = requestAnimationFrame(() => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment