diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 7665c229..a82814dd 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -369,6 +369,7 @@ }, data() { return { + tentative: false, isContentTypeTwo: null, isContentType: null, activeId: '', @@ -658,7 +659,7 @@ }, //替换播放区域 changePlayRes(r,item){ - + this.tentative = false; if(this.appendStudyOtherHandle!=null){ window.clearTimeout(this.appendStudyOtherHandle); } @@ -1454,6 +1455,7 @@ }); }, saveStudyInfo() { + this.tentative = true if(this.isContentType){ if(this.isContentType != this.contentData.contentType){ //定时器产生的,不记录 @@ -1647,7 +1649,7 @@ finishStudyItem() { //设置完成学习的内容,针对于音视频的内容 if (!this.contentData.studyItemId) { //这种可能没有,不过这里也是为了万中那个1 - this.saveStudyInfo(); + !this.tentative && this.saveStudyInfo(); } else { let params = { itemId: this.contentData.studyItemId,