fix: VideoPlayer 的实例未赋值 #524
This commit is contained in:
parent
54622c5c9a
commit
0e99f8374a
|
@ -21,7 +21,7 @@ const videoEl = ref<HTMLDivElement>()
|
||||||
|
|
||||||
const intiPlayer = () => {
|
const intiPlayer = () => {
|
||||||
if (!unref(videoEl)) return
|
if (!unref(videoEl)) return
|
||||||
new Player({
|
playerRef.value = new Player({
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
...props,
|
...props,
|
||||||
el: unref(videoEl)
|
el: unref(videoEl)
|
||||||
|
|
Loading…
Reference in New Issue