fix: use v-show instead of v-if for GamePlayer to prevent video element detach during image scenes
This commit is contained in:
@@ -69,7 +69,7 @@ init()
|
|||||||
<div v-if="loading" class="loading">加载中...</div>
|
<div v-if="loading" class="loading">加载中...</div>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="game-screen">
|
<div class="game-screen">
|
||||||
<GamePlayer v-if="!store.isImageScene" @video-ready="onVideoReady" />
|
<GamePlayer v-show="!store.isImageScene" @video-ready="onVideoReady" />
|
||||||
<HotspotLayer
|
<HotspotLayer
|
||||||
:hotspots="store.hotspots"
|
:hotspots="store.hotspots"
|
||||||
:is-image-scene="store.isImageScene"
|
:is-image-scene="store.isImageScene"
|
||||||
|
|||||||
Reference in New Issue
Block a user