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(() => {