Browse Source

定时器修改时间

shylock 2 years ago
parent
commit
30b1eadc97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/control.js

+ 1 - 1
src/control.js

@@ -18,7 +18,7 @@ export default class Control extends PureComponent {
 
 
     componentWillMount() {
     componentWillMount() {
         this.getData();
         this.getData();
-        this.interval = setInterval(() => this.getData(), 300000);
+        this.interval = setInterval(() => this.getData(), 60*1000);
     }
     }
 
 
     //组件销毁的时候清除定时器就行
     //组件销毁的时候清除定时器就行