学习课程记录
This commit is contained in:
@@ -484,8 +484,9 @@ function initVideoListeners() {
|
||||
const videos = articleContent.querySelectorAll('video');
|
||||
|
||||
if (videos.length === 0) {
|
||||
// 没有视频,默认阅读即完成
|
||||
// 没有视频,默认阅读即完成(不emit事件,依赖父组件的滚动检测)
|
||||
hasVideoCompleted.value = true;
|
||||
console.log('ℹ️ 文章中没有视频,完成条件:滚动到底部');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user