暂停时把时间请空重新计算

This commit is contained in:
nisen
2023-11-20 14:31:20 +08:00
parent ed2fef1d4b
commit b4f42f8556

View File

@@ -1435,6 +1435,8 @@
stopStudyTime(){
//console.log('停止追加学习时长');
this.isAppendTime=false;
//暂停让他为空 从新计时
this.appendStartTime = null
if (this.appendHandle != null) {
window.clearTimeout(this.appendHandle);
}
@@ -1467,7 +1469,7 @@
$this.appendStudyTime();
}, $this.appentInterval); //设置定时追加学习时长
//保存之前的
if (duration >0 ) {
if (duration >= 60 ) {
this.saveStudyDuration(duration);
}
return;