mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
临时方案避免重复调用
This commit is contained in:
@@ -429,6 +429,7 @@
|
||||
export default {
|
||||
data(){
|
||||
return{
|
||||
tentative: false,
|
||||
isShowPdt: true,
|
||||
progressData: 0,
|
||||
contentTypeV: '',
|
||||
@@ -904,6 +905,7 @@
|
||||
},
|
||||
//更换播放内容
|
||||
changePlayRes(con){
|
||||
this.tentative = false;
|
||||
this.videoPlayingTime = 0
|
||||
this.scormUrl='';//清空地址
|
||||
this.articleMore=true;
|
||||
@@ -1530,7 +1532,7 @@
|
||||
});
|
||||
},
|
||||
finishStudyItem(){ //设置完成学习的内容,针对于音视频的内容
|
||||
if(!this.curContent.studyItemId){
|
||||
if(!this.curContent.studyItemId && !this.tentative){ //临时方案避免重复调用
|
||||
//这种可能没有,不过这里也是为了万中那个1
|
||||
this.saveStudyInfo();
|
||||
}else{
|
||||
@@ -1752,6 +1754,7 @@
|
||||
},
|
||||
//还需要记录播放时间
|
||||
saveStudyInfo() { //记录课件学习信息
|
||||
this.tentative = true;
|
||||
if(this.curContent.contentType>=60){
|
||||
//只有在课件页面停留超过5秒才会记录
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user