Przeglądaj źródła

时间相同,不tick

y595705120 3 lat temu
rodzic
commit
014e6c4d1f
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/containers/center/play/components/media.vue

+ 4 - 2
src/containers/center/play/components/media.vue

@@ -233,7 +233,10 @@
          //  拉到后面
         if( !isFinish ){
           if ( !this.onPlay ) return;
-          // if( curTimes < media.position ) return this.setposition(media.position )
+          if( curTimes > this.prevTime){
+            this.prevTime = curTimes
+            return;
+          }
         }
         // 强制完成
         let param ={id: media.id, position:curTimes ,isFinish};
@@ -241,7 +244,6 @@
           if (res.code == 200) {
             let {skip, position, pause} = res.data
             if( pause ) {
-              console.log("tickpause")
               this.doPause();
               this.$emit("close")
               return