dedsudiyu преди 5 дни
родител
ревизия
f0bc402cff
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      src/views/components/right.vue

+ 6 - 2
src/views/components/right.vue

@@ -83,7 +83,8 @@
           height: 419, //(高度:非必传-默认338)
           url: '',
           cameraIndexCode: ''
-        }
+        },
+        videoData:{},
       }
     },
     created() {
@@ -91,10 +92,13 @@
     },
     mounted() {
       this.getDataTimerFunction()
-      this.initH5Player(1)
     },
     methods: {
       getDataTimerFunction() {
+        let self = this;
+        setTimeout(function() {
+          self.initH5Player(1);
+        },500)
         clearInterval(this.getDataTimer)
         this.iotIotdbSensorDailyStats()
         this.iotIotdbSensorRealDataCombined()