mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
暂停时把时间请空重新计算
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user