NEZ-391 fix:修复自动刷新后 请求数据的时间变化的问题

This commit is contained in:
wangwenrui
2020-09-09 09:59:50 +08:00
parent 1cc43473cd
commit a34c11aa18

View File

@@ -73,8 +73,8 @@
this.interval = val;
if (val && val.value != -1) {
const start = new Date(this.searchTime[1]);
const now = new Date();
const interval = Math.floor((now.getTime() - start.getTime()) / 1000); //计算当前结束时间到现在的间隔(秒)
const now = bus.getOffsetTimezoneData();
const interval = Math.floor((now - start.getTime()) / 1000); //计算当前结束时间到现在的间隔(秒)
if (interval >= 60) { //如果结束时间到现在超过30s
this.getIntervalData(interval);
}