|
|
@@ -135,8 +135,8 @@ const handleTimeUpdate = (ev) => {
|
|
|
// 触发父组件的时间更新事件
|
|
|
emits('timeUpdate', { currentTime, progressPercentage })
|
|
|
|
|
|
- if (!props.courseConfigList.length) return
|
|
|
- props.courseConfigList.forEach(courseCofig => {
|
|
|
+ if (!props.courseConfigList.length) return
|
|
|
+ props.courseConfigList.forEach(courseCofig => {
|
|
|
//暂停时间
|
|
|
let time = courseCofig.ccTime
|
|
|
// 检查是否到达时间点且还未暂停过
|
|
|
@@ -144,8 +144,11 @@ const handleTimeUpdate = (ev) => {
|
|
|
videoRef.value.pause()
|
|
|
// 记录暂停时间
|
|
|
pausedIndices.value.push(currentTime)
|
|
|
- // 触发父组件显示试题
|
|
|
- emits('timeUpdate', { currentTime, progressPercentage, courseConfig: courseCofig })
|
|
|
+ // 只有当存在问题内容时才触发弹窗
|
|
|
+ if (courseCofig.ccQuestContent) {
|
|
|
+ // 触发父组件显示试题
|
|
|
+ emits('timeUpdate', { currentTime, progressPercentage, courseConfig: courseCofig })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|