From ec5d995611d83d6aa82cdc092c48796c6812d591 Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Thu, 24 Aug 2023 16:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/video/video.tsx | 1 - src/pages/business/videoInfo/components/course.tsx | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/video/video.tsx b/src/components/video/video.tsx index f2730e3..2a6ca6f 100644 --- a/src/components/video/video.tsx +++ b/src/components/video/video.tsx @@ -98,7 +98,6 @@ const HVideo: FC = (opt: HVideoOptions) => { Taro.useUnload(() => { unique_ident.put(undefined, currentTime) - unique_ident.remove() unique_ident.upload().then() }) diff --git a/src/pages/business/videoInfo/components/course.tsx b/src/pages/business/videoInfo/components/course.tsx index 0b9d142..b001118 100644 --- a/src/pages/business/videoInfo/components/course.tsx +++ b/src/pages/business/videoInfo/components/course.tsx @@ -33,6 +33,7 @@ const Course: FC = ({id, courseId, preview, curEnd}) => { async function onEnded() { const startRecording = unique_ident.get() startRecording && await curriculum.curEnd(courseId, id, {...startRecording, duration: data?.duration!}) // 结束 + unique_ident.remove() if (testId) { if (preview) { // 预览