Commit 17f219d351340829e4c5edcbf269027811fc08a2
1 parent
b9ffcd1d
优化播放页面
Showing
1 changed file
with
6 additions
and
1 deletions
web_src/src/components/dialog/devicePlayer.vue
| @@ -305,7 +305,12 @@ export default { | @@ -305,7 +305,12 @@ export default { | ||
| 305 | }; | 305 | }; |
| 306 | } | 306 | } |
| 307 | }, | 307 | }, |
| 308 | - created() {}, | 308 | + created() { |
| 309 | + console.log(this.player) | ||
| 310 | + if (Object.keys(this.player).length === 1) { | ||
| 311 | + this.activePlayer = Object.keys(this.player)[0] | ||
| 312 | + } | ||
| 313 | + }, | ||
| 309 | data() { | 314 | data() { |
| 310 | return { | 315 | return { |
| 311 | video: 'http://lndxyj.iqilu.com/public/upload/2019/10/14/8c001ea0c09cdc59a57829dabc8010fa.mp4', | 316 | video: 'http://lndxyj.iqilu.com/public/upload/2019/10/14/8c001ea0c09cdc59a57829dabc8010fa.mp4', |