fix. GR_DETAIL_01 컨텐츠 네비게이션 타이틀에 전용 폰트 적용 안되는 이슈

This commit is contained in:
clkim
2026-02-09 15:09:18 +09:00
parent 644e1817ef
commit 9a05db2596

View File

@@ -16,6 +16,8 @@ const props = defineProps<Props>()
const { locale } = useI18n()
const { sendLog } = useAnalytics()
const gameDataStore = useGameDataStore()
const { fontFamily } = storeToRefs(gameDataStore)
const splideRef = ref<SplideSlide | null>(null)
const currentSlideIndex = ref<number | null>(null)
@@ -40,6 +42,14 @@ const goToSlide = (index: number, title: string) => {
sendLog(locale.value, analytics)
}
}
// 텍스트 스타일
const textStyle = (item: PageDataTemplateComponents) => {
const useGameFont = getComponentGroup(item, 'pagenaviTitle')?.display
?.use_game_font
return useGameFont === 1 ? { fontFamily: fontFamily.value } : {}
}
</script>
<template>
@@ -107,7 +117,7 @@ const goToSlide = (index: number, title: string) => {
"
>
<span class="item-bullet"></span>
<span class="item-title">
<span class="item-title" :style="textStyle(item)">
{{ getComponentGroup(item, 'pagenaviTitle')?.display?.text || '' }}
</span>
</button>