Procházet zdrojové kódy

timer另起名字

tags/jenkins-front-end-screenad-229-v129^0
caserKing před 5 roky
rodič
revize
3f4ea581f0
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. +4
    -4
      App.js

+ 4
- 4
App.js Zobrazit soubor

@@ -56,7 +56,7 @@ var animationThemes = [
}
]

var timer = null;
var curTimer = null;

var hbRequestCount
var getAdDataCount
@@ -358,8 +358,8 @@ codePushStatusDidChange(syncStatus) {
}

componentWillUnmount(){
if (timer)
clearTimeout(timer)
if (curTimer)
clearTimeout(curTimer)
}


@@ -414,7 +414,7 @@ async routine() {
this.setState({ versionInfo: versionInfo+'[E]'});
}

timer = setTimeout(()=>{
curTimer = setTimeout(()=>{
this.routine();
},1000);
}


Načítá se…
Zrušit
Uložit