Explorar o código

fix: VideoPlayer 的实例未赋值 #524

clddup hai 8 meses
pai
achega
0e99f8374a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/VideoPlayer/src/VideoPlayer.vue

+ 1 - 1
src/components/VideoPlayer/src/VideoPlayer.vue

@@ -21,7 +21,7 @@ const videoEl = ref<HTMLDivElement>()
 
 const intiPlayer = () => {
   if (!unref(videoEl)) return
-  new Player({
+  playerRef.value = new Player({
     autoplay: false,
     ...props,
     el: unref(videoEl)