소스 검색

fix: 回放视频不能跳转的问题

xuqiaoying 3 년 전
부모
커밋
0e975b5e47
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/pages/course-detail/index.vue

+ 1 - 3
src/pages/course-detail/index.vue

@@ -5253,7 +5253,6 @@ export default {
      */
     async getResource(section,type,flag) {
       //type:1章卷,2节卷,3模考卷
-      console.log('点击节节节', section,type)
       if(flag){
          //节卷
        let data = this.sectionExamList.filter(x => x.sectionId == section.menuId)
@@ -5267,7 +5266,6 @@ export default {
         section = data[0]
        }
       }
-      console.log('2222222', section)
       this.clickSectionItem = section
       //逻辑
       if (section.sectionType === 2 && section.liveStartTime && section.liveEndTime) {
@@ -5485,7 +5483,7 @@ export default {
         }
         this.clickLock = true;
         if (
-          this.playSectionId &&
+          this.sectionItem.sectionType === 1 && this.playSectionId &&
           (this.playSectionId == section.sectionId ||
             this.playSectionId == section.menuId) &&
           this.moduleId == (section.moduleId || 0) &&