Pārlūkot izejas kodu

优化播放页面

648540858 3 gadi atpakaļ
vecāks
revīzija
17f219d351
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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',