From 67295a112cdc029f7735636cfdf3f4641f72eed3 Mon Sep 17 00:00:00 2001 From: clkim Date: Tue, 9 Dec 2025 15:14:36 +0900 Subject: [PATCH] =?UTF-8?q?fix.=20=EA=B2=8C=EC=9E=84=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EB=93=9C=20platform=5Ftype=20=EB=B3=84=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/components/layouts/Header.vue | 45 ++++++++++++------------ layers/templates/FxPreregist01/index.vue | 34 ++++++++++-------- layers/utils/dataUtil.ts | 10 +++--- 3 files changed, 47 insertions(+), 42 deletions(-) diff --git a/layers/components/layouts/Header.vue b/layers/components/layouts/Header.vue index b067448..c4c5c7e 100644 --- a/layers/components/layouts/Header.vue +++ b/layers/components/layouts/Header.vue @@ -45,25 +45,26 @@ const overflowCount = ref(0) const gnbData = computed(() => gameData.value?.gnb) const hasGnbMenus = computed(() => { const menus = gnbData.value?.menus - if (!menus) return false - if (typeof menus !== 'object') return false + if (!menus || typeof menus !== 'object') return false return Object.keys(menus).length > 0 }) - const currentPath = computed(() => formatPathWithoutLocale(route.path)) -const gnb1depthButtonData = computed( +const start1depthData = computed( () => gnbData.value?.buttons[0]?.button_json as GameDataResourceGroup ) -const gnb2depthButtonData = computed( +const start2depthData = computed( () => gnbData.value?.buttons[1]?.button_json as GameDataResourceGroupSet ) const supportedPlatforms = computed( () => getSupportedPlatforms( - gameData.value?.os_type, - gameData.value?.platform_type + gameData.value?.platform_type, + gameData.value?.os_type ) as PlatformTransformType[] ) +const isStartPCVisible = computed(() => { + return device.isDesktop && gameData.value?.platform_type !== '2' +}) // 자식 중 활성 링크 존재 여부 확인 const hasActiveChild = (children?: GameDataMenuChildren) => { @@ -184,7 +185,7 @@ const showNotSupportedOSAlert = () => { } const handleStartClick = () => { - if (device.isDesktop) return + if (isStartPCVisible.value) return const target = device.isAndroid ? 'google_play' @@ -262,14 +263,14 @@ onMounted(() => {