mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
暂停时把时间请空重新计算
This commit is contained in:
@@ -1435,6 +1435,8 @@
|
|||||||
stopStudyTime(){
|
stopStudyTime(){
|
||||||
//console.log('停止追加学习时长');
|
//console.log('停止追加学习时长');
|
||||||
this.isAppendTime=false;
|
this.isAppendTime=false;
|
||||||
|
//暂停让他为空 从新计时
|
||||||
|
this.appendStartTime = null
|
||||||
if (this.appendHandle != null) {
|
if (this.appendHandle != null) {
|
||||||
window.clearTimeout(this.appendHandle);
|
window.clearTimeout(this.appendHandle);
|
||||||
}
|
}
|
||||||
@@ -1467,7 +1469,7 @@
|
|||||||
$this.appendStudyTime();
|
$this.appendStudyTime();
|
||||||
}, $this.appentInterval); //设置定时追加学习时长
|
}, $this.appentInterval); //设置定时追加学习时长
|
||||||
//保存之前的
|
//保存之前的
|
||||||
if (duration >0 ) {
|
if (duration >= 60 ) {
|
||||||
this.saveStudyDuration(duration);
|
this.saveStudyDuration(duration);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user