Tang 2 gadi atpakaļ
vecāks
revīzija
58ea75b207
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/components/videoCy/index.vue

+ 2 - 2
src/components/videoCy/index.vue

@@ -109,8 +109,8 @@ export default {
           sectionId: this.activeSection.sectionId
         };
         this.$request.recordLast(data).then(res => {
-          if (res.data && res.data.videoCurrentTime) {
-            this.activeSection.videoCurrentTime = res.data.videoCurrentTime;
+          if (res.data && res.data.videoCurrentTime && res.data.videoCurrentTime - 3 >= 0) {
+            this.activeSection.videoCurrentTime = res.data.videoCurrentTime - 3;
           }
           resolve();
         });