dedsudiyu 3 月之前
父節點
當前提交
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()