【bug:SZX-1217】移动端断点续学的问题。

This commit is contained in:
xu
2025-11-07 14:52:14 +08:00
parent bc3a68a5f9
commit 65c63f7c38

View File

@@ -749,6 +749,17 @@ export default {
})
},
loadDetail() {
// 切换课程前重置当前学习记录,避免旧数据干扰
this.curContent = Object.assign({}, this.curContent, {
id: '',
studyItemId: '',
lastStudyTime: 0,
status: 1,
progress: 0
})
this.videoPlayingTime = 0
this.preTime = -1
let $this = this;
uni.showLoading({title: '加载中...'})
apiCourseStudy.studyIndex(this.courseId).then(rs => {
@@ -1181,9 +1192,6 @@ export default {
}
}
// 切换课程之后 studyItemId 没有及时清理, 导致 chrome 系列的浏览器
// 切换课程之后不会重新计算观看时间位置
this.curContent.studyItemId = ''
},
followUser(tea) {
//实现关注处理