diff --git a/layers/templates/GrDetail01/index.vue b/layers/templates/GrDetail01/index.vue index 42fbfa3..82fb423 100644 --- a/layers/templates/GrDetail01/index.vue +++ b/layers/templates/GrDetail01/index.vue @@ -16,6 +16,8 @@ const props = defineProps() const { locale } = useI18n() const { sendLog } = useAnalytics() +const gameDataStore = useGameDataStore() +const { fontFamily } = storeToRefs(gameDataStore) const splideRef = ref(null) const currentSlideIndex = ref(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 } : {} +}