fix. [PWT-124] 액션 버튼 게임 실행 타입 mo 환경 노출 오류 수정

This commit is contained in:
clkim
2025-11-27 19:53:41 +09:00
parent 5d14a92399
commit 43e9122fca

View File

@@ -14,6 +14,9 @@ const props = defineProps<Props>()
// Configuration
const runtimeConfig = useRuntimeConfig()
const breakpoints = useResponsiveBreakpoints()
const device = useDevice()
const dataResourcesUrl = runtimeConfig.public.dataResourcesUrl as string
const multilingualFileName = 'STOVE_PUBTEMPLATE_homepage_brand_preregist.json'
@@ -196,6 +199,19 @@ const splideOptions = computed(() => {
}
})
const isRunButtonVisible = (marketType?: Platform): boolean => {
if (breakpoints.value?.isDesktop) return true
switch (marketType) {
case 'google_play':
return device.isAndroid
case 'app_store':
return device.isApple
default:
return false
}
}
// Handler
const handlePreregistClick = () => {
preregistModalRef.value?.handleOpenPreregist()
@@ -268,16 +284,20 @@ const handlePreregistClick = () => {
>
{{ tm('Preregist_Btn_Preegist') }}
</BlocksButtonLauncher>
<BlocksButtonLauncher
<template
v-for="platform in getSupportedPlatforms(gameData?.os_type)"
:key="`preregist-${platform}`"
type="duplication"
:platform="platform as Platform"
:background-color="buttonColors.backgroundColor"
:text-color="buttonColors.textColor"
>
{{ tm('Preregist_Btn_Preegist') }}
</BlocksButtonLauncher>
<BlocksButtonLauncher
v-if="isRunButtonVisible(platform as Platform)"
type="duplication"
:platform="platform as Platform"
:background-color="buttonColors.backgroundColor"
:text-color="buttonColors.textColor"
>
{{ tm('Preregist_Btn_Preegist') }}
</BlocksButtonLauncher>
</template>
</div>
<WidgetsDescription
v-if="preDescriptionData"