mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
8913abe883
commit
3450506f04
@ -103,10 +103,14 @@
|
||||
let _date = new Date();
|
||||
let _curHours = _date.getHours();
|
||||
_that.curSecHours = this.secHours[0];
|
||||
let _break =false;
|
||||
this.secHours.forEach(_hours => {
|
||||
if(_break){
|
||||
return;
|
||||
}
|
||||
if (_hours.hours >= _curHours) {
|
||||
_that.curSecHours = _hours;
|
||||
return;
|
||||
_break = true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user