Browse Source

Update coursewarePlay.vue

lex-xin 2 tháng trước cách đây
mục cha
commit
8607fa2300
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/views/coursewarePlay/coursewarePlay.vue

+ 6 - 1
src/views/coursewarePlay/coursewarePlay.vue

@@ -542,6 +542,12 @@ function handleCourseSearchClick(value: any) {
    }
 }
 function handleCourseClick(value: any) {
+   console.log(value, "value")
+   const type = value.typeCode || value.type
+   if (type !== "VIDEO") {
+      handleVideoPause()
+   }
+
    searchObj.search = searchObj.tempSearch ? JSON.parse(JSON.stringify(searchObj.tempSearch)) : ""
    coursewareList.value = deepCopy(tempCoursewareList.value)
    flattenCoursewareList.value = deepCopy(tempFlattenCoursewareList.value)
@@ -585,7 +591,6 @@ async function handleCourseMenuClick(value: any) {
       // 切换之后默认打开课程目录
 
       //    }
-
       drawerShow.value = true
    })
    LoadingBar.loading(false)