Browse Source

删除无效代码

zhouna 6 years ago
parent
commit
f7434ab9d3
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/containers/NumberDrop.js

+ 1 - 3
src/containers/NumberDrop.js

@@ -124,11 +124,9 @@ function mapDispatchToProps(dispatch,store){
       handleModuleDiff(dispatch,params);
 
       //右侧推送
-      clearTimeout(timer);
-      let timer = setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
+      setTimeout(function(){      //延迟待确定后的数据更新后推送,避免获取的参数还是旧的
         if(didPushParamChange()){     //操作后内容有变化才推送
           dispatch(billing('',params.ikey.substr(0,1)));
-          clearTimeout(timer);
         }
       },config.delayPushTime);
     },