|
|
|
@ -220,6 +220,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
startCountdown() {
|
|
|
|
|
this.newupdatatime = new Date().getTime(); // 更新当前时间
|
|
|
|
|
// 清空之前可能存在的定时器
|
|
|
|
|
if (this.intervalId) {
|
|
|
|
|
clearInterval(this.intervalId);
|
|
|
|
@ -237,7 +238,6 @@ export default {
|
|
|
|
|
// 更新时间尚未设置,返回默认的倒计时时间或者不执行任何操作
|
|
|
|
|
return "计算中...";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const estimatedPublishTime = item.estimatedPublishTime * 1000;
|
|
|
|
|
const difference = estimatedPublishTime - this.newupdatatime;
|
|
|
|
|
const minutes = Math.floor(difference / 60000);
|
|
|
|
|