fix: VideoPlayer 的实例未赋值 #524

This commit is contained in:
clddup 2024-08-30 15:01:51 +00:00
parent 54622c5c9a
commit 0e99f8374a
1 changed files with 1 additions and 1 deletions

View File

@ -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)