From 0075a848e35dc8239b562b47f444c1e55690c4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 30 May 2023 18:05:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=98=BE=E7=A4=BA=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/video.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/course/video.tsx b/src/pages/course/video.tsx index fe83d9a..49416fc 100644 --- a/src/pages/course/video.tsx +++ b/src/pages/course/video.tsx @@ -107,7 +107,7 @@ const CoursePalyPage = () => { setLastSeeValue(params); setLastSeeValue(params); setWatchedSeconds(record.finished_duration); - } else { + } else if (record && record.is_finished === 1) { setWatchedSeconds(res.data.hour.duration); } getVideoUrl(params);