Forráskód Böngészése

Merge branch 'dev' of http://120.79.166.78:19005/zhongzheng-edu/saas_pc into dev

xiexaing 1 éve
szülő
commit
00f5bd2dd4
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/components/videoCy/index.vue

+ 5 - 0
src/components/videoCy/index.vue

@@ -539,6 +539,11 @@ export default {
     submitStudyRecords() {
       let time = new Date().getTime();
       if (time >= this.commitTime) {
+        if(!this.commitTime){
+          //防止发生获取不到视频播放时长
+          this.commitTime = time + 3000;
+          return
+        }
         this.postStudyRecord(0, null, null);
         this.commitTime = time + 15000;
       }