소스 검색

判断视频时间

lex 1 년 전
부모
커밋
9c8ac320b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/student-register/index.tsx

+ 1 - 1
src/views/student-register/index.tsx

@@ -1211,7 +1211,7 @@ export default defineComponent({
           schoolId
         };
         let otherParams = {};
-        if (!userId) {
+        if (!userId && videoForms.player.currentTime() > 0) {
           otherParams = {
             videoBrowseData: JSON.stringify(videoBrowseData), // 视屏播放数据
             videoBrowseDataTime: time || 0, // 有效的视频观看时长