Просмотр исходного кода

Update Analysis.js

delete this.state
Anderson 7 лет назад
Родитель
Сommit
5ae2e75170
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      src/pages/Dashboard/Analysis.js

+ 6 - 6
src/pages/Dashboard/Analysis.js

@@ -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(() => {