|
|
@ -374,6 +374,7 @@ export default {
|
|
|
|
setNum: Math.floor(Math.random() * 10),
|
|
|
|
setNum: Math.floor(Math.random() * 10),
|
|
|
|
compareloading: false,
|
|
|
|
compareloading: false,
|
|
|
|
timeProtocol: "",
|
|
|
|
timeProtocol: "",
|
|
|
|
|
|
|
|
|
|
|
|
intervalNum: 1000, //时间间隔
|
|
|
|
intervalNum: 1000, //时间间隔
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -642,15 +643,9 @@ export default {
|
|
|
|
this.requestId = res.data.requestId;
|
|
|
|
this.requestId = res.data.requestId;
|
|
|
|
// this.realNewtime();
|
|
|
|
// this.realNewtime();
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
//console.log(this.requestList);
|
|
|
|
|
|
|
|
this.realNewtime();
|
|
|
|
this.realNewtime();
|
|
|
|
console.log("时间", this.timernum);
|
|
|
|
console.log("时间", this.timernum);
|
|
|
|
if (this.timernum < 2) {
|
|
|
|
console.log("时间间隔", this.intervalNum);
|
|
|
|
this.intervalNum = 1000;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.intervalNum = 2000;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(this.intervalNum);
|
|
|
|
|
|
|
|
this.timernum++;
|
|
|
|
this.timernum++;
|
|
|
|
}, this.intervalNum);
|
|
|
|
}, this.intervalNum);
|
|
|
|
})
|
|
|
|
})
|
|
|
|