fix. 모바일 점검 iOS나 AOS로 접근 시, 마켓버튼 노출되지 않는 이슈 수정
This commit is contained in:
@@ -185,19 +185,27 @@ const launchingStatus = computed(() => {
|
||||
})
|
||||
|
||||
const supportedPlatforms = computed(() => {
|
||||
const platforms = getSupportedPlatforms(
|
||||
const basePlatforms = getSupportedPlatforms(
|
||||
platformType.value,
|
||||
osType.value
|
||||
) as PlatformTransformType[]
|
||||
|
||||
if (!device.isDesktop) {
|
||||
platforms.splice(platforms.indexOf('pc'), 1)
|
||||
if (device.isAndroid) {
|
||||
platforms.splice(platforms.indexOf('app_store'), 1)
|
||||
}
|
||||
if (device.isApple) {
|
||||
platforms.splice(platforms.indexOf('google_play'), 1)
|
||||
}
|
||||
// 데스크탑 환경에서는 모든 플랫폼 표시
|
||||
if (device.isDesktop) {
|
||||
return basePlatforms
|
||||
}
|
||||
|
||||
// 모바일 환경에서는 pc 버튼 제거
|
||||
let platforms = basePlatforms.filter(platform => platform !== 'pc')
|
||||
|
||||
// AOS 에서는 app_store 제거
|
||||
if (device.isAndroid) {
|
||||
platforms = platforms.filter(platform => platform !== 'app_store')
|
||||
}
|
||||
|
||||
// iOS 에서는 google_play 제거
|
||||
if (device.isApple) {
|
||||
platforms = platforms.filter(platform => platform !== 'google_play')
|
||||
}
|
||||
|
||||
return platforms
|
||||
|
||||
Reference in New Issue
Block a user