浏览代码

判断视频时间

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, // 有效的视频观看时长