mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
提前调用函数计时
This commit is contained in:
@@ -1460,8 +1460,8 @@
|
|||||||
let endTime = new Date().getTime();
|
let endTime = new Date().getTime();
|
||||||
this.appentInterval = 60
|
this.appentInterval = 60
|
||||||
let totalTime = Math.round((endTime - this.appendStartTime) / 1000);
|
let totalTime = Math.round((endTime - this.appendStartTime) / 1000);
|
||||||
this.saveStudyDuration(totalTime)
|
|
||||||
this.appendStudyTime();
|
this.appendStudyTime();
|
||||||
|
this.saveStudyDuration(totalTime)
|
||||||
}, this.appentInterval * 1000);
|
}, this.appentInterval * 1000);
|
||||||
},
|
},
|
||||||
//追加学习时长, flag是否提交到后台
|
//追加学习时长, flag是否提交到后台
|
||||||
|
|||||||
Reference in New Issue
Block a user