Explorar o código

判断视频时间

lex hai 1 ano
pai
achega
9c8ac320b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, // 有效的视频观看时长