From b7a17eee6d20c539fcb8bc0abacff6a10056c6ad Mon Sep 17 00:00:00 2001 From: clkim Date: Thu, 12 Feb 2026 13:37:50 +0900 Subject: [PATCH] =?UTF-8?q?fix.=20=ED=94=8C=EB=9E=AB=ED=8F=BC=20pc=20?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=EC=9B=90=ED=95=98=EB=8A=94=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EB=8D=B0=EC=8A=A4=ED=81=AC=ED=83=91=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EB=85=B8=EC=B6=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/inspection/index.vue | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/pages/inspection/index.vue b/app/pages/inspection/index.vue index 1aa541e..fc158c5 100644 --- a/app/pages/inspection/index.vue +++ b/app/pages/inspection/index.vue @@ -99,9 +99,7 @@ variant="outlined" :platform="Platform" :class="[ - { 'flex-1': Platform === 'pc' }, - { 'flex-1': Platform !== 'pc' && !device.isDesktop }, - { 'no-text': !getButtonText(Platform) }, + getButtonText(Platform) ? 'flex-1' : 'no-text', 'size-extra-small md:size-small', ]" > @@ -227,18 +225,21 @@ const handleCommunityClick = () => { window.open(communityUrl.value, '_blank') } -const getButtonText = (platform: string) => { - const platformKeyMap: Record = { - pc: 'platform_pc', - google_play: 'platform_google_play', - app_store: 'platform_app_store', - } +const PLATFORM_LABEL_KEYS: Record = { + pc: 'platform_pc', + google_play: 'platform_google_play', + app_store: 'platform_app_store', +} - if (platform !== 'pc' && device.isDesktop) { +const getButtonText = (platform: PlatformTransformType) => { + // 데스크탭 환경에서 pc지원하는 경우 os 버튼 텍스트 미표시 + const isDesktopWithSinglePlatform = + device.isDesktop && platformType.value !== '2' && platform !== 'pc' + if (isDesktopWithSinglePlatform) { return '' } - const key = platformKeyMap[platform] + const key = PLATFORM_LABEL_KEYS[platform] return key ? tm(key) : '' }