mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
修改一个this指向问题
This commit is contained in:
@@ -402,6 +402,7 @@
|
||||
}
|
||||
});
|
||||
//每一分钟保存一次
|
||||
let $this=this;
|
||||
this.appendStudyOtherHandle = setTimeout(function() {
|
||||
$this.appendStudyOtherTime();
|
||||
}, 1000*60);
|
||||
@@ -570,7 +571,8 @@
|
||||
if(this.appendStudyOtherHandle!=null){
|
||||
windows.clearTimeout(this.appendStudyOtherHandle);
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.appendStudyOtherHandle = setTimeout(function() {
|
||||
$this.appendStudyOtherTime();
|
||||
}, 1000*60*2); //非音视频课程学习,2分钟后记录,因为一次记录是60秒
|
||||
|
||||
Reference in New Issue
Block a user