Эх сурвалжийг харах

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

xuqiaoying 3 жил өмнө
parent
commit
0e975b5e47

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

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