mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 修复缺少视频封面时控制台报错
This commit is contained in:
parent
0ff7efb7ba
commit
544ca2d1de
@ -4,7 +4,7 @@
|
|||||||
<div class="background-image-wrapper">
|
<div class="background-image-wrapper">
|
||||||
<FileInput @change="files => setVideoPoster(files)">
|
<FileInput @change="files => setVideoPoster(files)">
|
||||||
<div class="background-image">
|
<div class="background-image">
|
||||||
<div class="content" :style="{ backgroundImage: `url(${handleVideoElement.poster})` }">
|
<div class="content" :style="{ backgroundImage: handleVideoElement.poster ? `url(${handleVideoElement.poster})` : '' }">
|
||||||
<IconPlus />
|
<IconPlus />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
class="rotate-wrapper"
|
class="rotate-wrapper"
|
||||||
:style="{ transform: `rotate(${elementInfo.rotate}deg)` }"
|
:style="{ transform: `rotate(${elementInfo.rotate}deg)` }"
|
||||||
>
|
>
|
||||||
<div class="element-content" :style="{ backgroundImage: `url(${elementInfo.poster})` }">
|
<div class="element-content" :style="{ backgroundImage: elementInfo.poster ? `url(${elementInfo.poster})` : '' }">
|
||||||
<IconPlayOne class="icon" />
|
<IconPlayOne class="icon" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user