fix: VideoPlayer 的实例未赋值 #524
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user