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) { // 预览