Explorar el Código

优化播放页面

648540858 hace 3 años
padre
commit
17f219d351
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  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',