瀏覽代碼

优化播放页面

648540858 3 年之前
父節點
當前提交
17f219d351
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      web_src/src/components/dialog/devicePlayer.vue

+ 6 - 1
web_src/src/components/dialog/devicePlayer.vue

@@ -305,7 +305,12 @@ export default {
             };
         }
     },
-    created() {},
+    created() {
+      console.log(this.player)
+      if (Object.keys(this.player).length === 1) {
+        this.activePlayer = Object.keys(this.player)[0]
+      }
+    },
     data() {
         return {
             video: 'http://lndxyj.iqilu.com/public/upload/2019/10/14/8c001ea0c09cdc59a57829dabc8010fa.mp4',