fix. 템플릿 데이터 수정에 따른 fe 소스 수정

This commit is contained in:
clkim
2025-10-14 14:34:31 +09:00
parent 277532f0ba
commit 355e059e90
9 changed files with 125 additions and 127 deletions

View File

@@ -46,7 +46,7 @@ const currentPosterSrc = computed(() => {
<div class="absolute inset-0 w-full h-full">
<!-- 이미지 타입-->
<div
v-if="resourcesData?.group_type === 'image'"
v-if="isTypeImage(resourcesData?.resource_type)"
class="w-full h-full bg-cover bg-center bg-no-repeat"
:class="getResponsiveClass()"
:style="bgStyles"
@@ -54,7 +54,7 @@ const currentPosterSrc = computed(() => {
<!-- 비디오 타입 -->
<video
v-else-if="resourcesData?.group_type === 'video' && currentVideoSrc"
v-else-if="isTypeVideo(resourcesData?.resource_type) && currentVideoSrc"
class="w-full h-full object-cover"
:poster="currentPosterSrc"
autoplay

View File

@@ -61,7 +61,7 @@ const getButtonProps = (button: PageDataResourceGroup) => ({
>
<AtomsButton
v-for="(button, index) in props.resourcesData"
:key="`${button.group_code}-${index}`"
:key="index"
v-bind="getButtonProps(button)"
class="size-extra-small md:size-medium"
>