Commit f5eed96d authored by 程恺文's avatar 程恺文

feat: 设置定时器3分钟执行一次

parent 39470bf3
Pipeline #55323 waiting for manual action with stages
......@@ -46,7 +46,10 @@ class HuaNongLogin extends Component {
this.setSubmitting(true);
this.props.updateCurrentIndex(-1);
//没取到0id 要给定时器
setInterval(()=>{
if( window.gzTime){
clearInterval( window.gzTime)
}
setTimeout(()=>{
appService
. getInOnLine({
UserID: globalConfig.userInfo.oid,
......@@ -55,6 +58,15 @@ class HuaNongLogin extends Component {
Oid:this._createGuid(),
})
},10000)
window.gzTime= setInterval(()=>{
appService
. getInOnLine({
UserID: globalConfig.userInfo.oid,
SatrtDate: this.getNowDate(),
Port: location.port,
Oid:this._createGuid(),
})
},180000)
};
onActinoChange = action => {
......
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