fix. videoPlay url 없으면 모달 열지 않도록 수정

This commit is contained in:
clkim
2025-11-20 16:56:23 +09:00
parent 7090d6aef3
commit 2fac2023d7

View File

@@ -13,12 +13,14 @@ const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
// 비디오 플레이 버튼 클릭 핸들러
const handleVideoPlayClick = () => {
const youtubeUrl = props.resourcesData?.display?.text ?? ''
modalStore.handleOpenYoutube({ youtubeUrl })
if (youtubeUrl) {
modalStore.handleOpenYoutube({ youtubeUrl })
sendLog(
locale.value,
useAnalyticsLogDataDirect(props.resourcesData, props.pageVerTmplSeq)
)
sendLog(
locale.value,
useAnalyticsLogDataDirect(props.resourcesData, props.pageVerTmplSeq)
)
}
}
</script>