Ver código fonte

feat:修复视频组件设置封面失效的问题

liu.shiyi 1 ano atrás
pai
commit
8bf1c26e49

+ 4 - 1
data-room-ui/packages/BasicComponents/Video/index.vue

@@ -79,7 +79,10 @@ export default {
   mounted () {},
   methods: {
     // 由于静态组件没有混入公共函数,所以需要定义一个changeStyle方法,以免报错
-    changeStyle () {
+    changeStyle (config) {
+      this.videoOptions.sources.type = config.customize.videoType
+      this.videoOptions.sources.type = config.customize.videoUrl
+      this.videoOptions.poster = config.customize.posterUrl
     }
   }
 }