Parcourir la source

fix:巡查时间问题修复

liu_w601 il y a 3 mois
Parent
commit
cf8d6f634f
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/views/video-play-popup/inspect.vue

+ 5 - 1
src/views/video-play-popup/inspect.vue

@@ -77,7 +77,11 @@ export default {
   },
   created() {
     this.$globalEventBus.$on('clickVideoInspectPlay', (data) => {
-      console.info(data.taskInfo)
+      if(this.timer){
+        clearInterval(this.timer)
+      }
+      this.currentTime = 0
+      this.isRunning = false
       this.type = data.type
       this.taskInfo = data.taskInfo
       this.devName = data.point && data.point.devName ? data.point.devName : ''