From 465cc901b14a4a2f2fb22fa3738565cf8e76f3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Wed, 31 May 2023 09:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E9=A1=B5=E9=9D=A2=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E8=BF=9B=E5=BA=A6=E6=9D=A1=E9=80=BB=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/video.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/course/video.tsx b/src/pages/course/video.tsx index 4abf5fe..96292da 100644 --- a/src/pages/course/video.tsx +++ b/src/pages/course/video.tsx @@ -162,7 +162,8 @@ const CoursePalyPage = () => { currentTime - playRef.current >= 2 && currentTime > watchRef.current ) { - window.player.seek(playRef.current); + message.warning("首次学习禁止快进"); + window.player.seek(watchRef.current); } else { setPlayingTime(currentTime); playTimeUpdate(parseInt(window.player.video.currentTime), false);