From ff908554fdd7077b1a8d62c87e7b836b5e14812d Mon Sep 17 00:00:00 2001 From: sunhonglai Date: Mon, 21 Apr 2025 11:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=8A=A5=E6=97=B6?= =?UTF-8?q?=E9=95=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 568d0543..66c11dca 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -780,7 +780,7 @@ this.$nextTick(function(){ - if(this.contentData.progressVideo){ + if (r.contentType == 10) { this.$refs.myVideoPlayer.updateProgressByClickBar2(this.contentData.lastStudyTime,this.contentData.progressVideo); } @@ -1397,6 +1397,7 @@ //对已学习的内容进行比对,重要的字段, 学习内容id,在后缀的 let playIndex = -1; this.contentList.forEach((con, conIdx) => { + con.progressVideo = con.progressVideo || 0; result.contentStudys.forEach((scon, sconIdx) => { if (scon.contentId == con.id) { //定位显示的内容 @@ -1409,7 +1410,7 @@ } } con.lastStudyTime = scon.lastStudyTime; - con.progressVideo = scon.progressVideo; + con.progressVideo = scon.progressVideo || 0; //以下判断是为了兼容之前的问题,学习状态 if (scon.status) { con.status = scon.status;