|
|
@@ -247,15 +247,13 @@ const typeSort = ref('')
|
|
|
const isDisabled = ref(false)
|
|
|
|
|
|
// 保存视频进度接口
|
|
|
- const handleSaveProgress = async (progressData) => {
|
|
|
+ const handleSaveProgress = async (type, progress) => {
|
|
|
try {
|
|
|
- const { progress, gradeId: brpNjId, typeId: brpCtId, courseId: brpCourseId } = progressData
|
|
|
-
|
|
|
await saveRecord({
|
|
|
- brpNjId: brpNjId || globalState.getGradeId(),
|
|
|
- brpCtId,
|
|
|
- brpCourseId,
|
|
|
- brpType: 'course',
|
|
|
+ brpNjId: gradeId.value,
|
|
|
+ brpCtId: typeId.value,
|
|
|
+ brpCourseId: course.value.id,
|
|
|
+ brpType: type,
|
|
|
brpProgress: progress
|
|
|
})
|
|
|
} catch (error) {
|