fix. [PWT-121] 공통 > 액션 버튼 영상 타입 버튼 자동 재생 오류
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { getYouTubeEmbedUrl } from '@/layers/utils/youtubeUtil'
|
||||
import { getYouTubeUrl } from '@/layers/utils/youtubeUtil'
|
||||
|
||||
const modalStore = useModalStore()
|
||||
const scrollStore = useScrollStore()
|
||||
|
||||
const { youtube } = modalStore
|
||||
|
||||
const embedUrl = computed(() => {
|
||||
return getYouTubeEmbedUrl(youtube.storeYoutubeUrl)
|
||||
const youtubeUrl = computed(() => {
|
||||
return getYouTubeUrl(youtube.storeYoutubeUrl)
|
||||
})
|
||||
|
||||
const handleClose = () => {
|
||||
@@ -60,8 +60,8 @@ onUnmounted(() => {
|
||||
<!-- 유튜브 영상 컨테이너 -->
|
||||
<div class="relative w-full h-full">
|
||||
<iframe
|
||||
v-if="embedUrl"
|
||||
:src="embedUrl"
|
||||
v-if="youtubeUrl"
|
||||
:src="youtubeUrl"
|
||||
class="absolute top-0 left-0 w-full h-full"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
|
||||
Reference in New Issue
Block a user