diff --git a/pages/course/chapterDetail.vue b/pages/course/chapterDetail.vue index c3331b5..c2a2937 100644 --- a/pages/course/chapterDetail.vue +++ b/pages/course/chapterDetail.vue @@ -421,7 +421,7 @@ export default { console.log("data at line 370:", data); if (data.id != this.currentVideo.id) { // handleEnd - this.$refs.commonVideo.setVideoTime(); + this.$refs.commonVideo.handleEnd(); setTimeout(() => { this.currentVideo = data; @@ -527,10 +527,7 @@ export default { .then(async (res) => { that.curriculumData = res.data.detail; that.videoArray = res.data.videos; - console.log( - "that.videoArray at line 这是关联的视频519:", - res.data.current - ); + console.log("that.videoArray at line 这是关联的视频519:", res); var isHaveHistorySeekVideo = that.videoArray.findIndex( (e) => e.id == res.data.current ); @@ -977,6 +974,7 @@ export default {