视频播放已学完不显示跳转进度条

This commit is contained in:
禺狨 2023-03-31 09:40:36 +08:00
parent c2a26706c8
commit 519907de2a
2 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,7 @@ export const HourCompenent: React.FC<PropInterface> = ({
id={currentId}
title={currentTitle}
open={visible}
progress={progress}
isLastpage={isLastpage}
lastSeeDuration={lastSeeDuration}
onCancel={() => {

View File

@ -13,6 +13,7 @@ interface PropInterface {
open: boolean;
isLastpage: boolean;
lastSeeDuration: number;
progress: number;
onCancel: () => void;
goNextVideo: () => void;
}
@ -24,6 +25,7 @@ export const VideoModel: React.FC<PropInterface> = ({
open,
isLastpage,
lastSeeDuration,
progress,
onCancel,
goNextVideo,
}) => {
@ -38,7 +40,7 @@ export const VideoModel: React.FC<PropInterface> = ({
useEffect(() => {
let params = null;
if (open) {
if (lastSeeDuration > 0) {
if (lastSeeDuration > 0 && progress < 100) {
params = {
time: 5,
pos: lastSeeDuration,