Tang %!s(int64=2) %!d(string=hai) anos
pai
achega
e4c4107c6f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/pages/course-detail/components/CourseTree.vue

+ 7 - 0
src/pages/course-detail/components/CourseTree.vue

@@ -623,6 +623,13 @@ export default {
       if (this.query.sectionType == 1 && !!this.query.rebuild == this.rebuild) {
         this.toPlay(sectionItem);
       }
+      //生成唯一ID定位Start
+      document.getElementsByClassName('lear-state')[0].setAttribute('id','onlyGif')
+      var a = document.createElement('a')
+      a.setAttribute('href',`#onlyGif`)
+      document.body.appendChild(a)
+      a.click()
+      //生成唯一ID定位End
     },
     activeFunc(courseId, index) {
       let { courseId: nowCourseId, courseList } = this.treeList[index];