临时方案避免重复调用

This commit is contained in:
zhangsir
2024-08-15 17:31:31 +08:00
parent 92b05faafa
commit c3fcf4524d

View File

@@ -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;