fix. [PWT-116] STOVE GNB > 설치, 알림 버튼 노출 여부 기능 동작 오류
This commit is contained in:
@@ -16,7 +16,7 @@ const stoveGnbData = gameData.value?.stove_gnb_json
|
||||
const languageCodes = computed(() => {
|
||||
if (Array.isArray(availableLocales)) {
|
||||
return availableLocales.map(
|
||||
(localeCode: any) => localeCode.code || localeCode
|
||||
(localeCode: any) => localeCode.code ?? localeCode
|
||||
)
|
||||
}
|
||||
return [locale]
|
||||
@@ -32,19 +32,19 @@ const loadGnb = (locale: string) => {
|
||||
widget: {
|
||||
gameListAndService: false,
|
||||
languageSelect: false,
|
||||
notification: false,
|
||||
notification: stoveGnbData?.notify_icon_visible ?? true,
|
||||
stoveDownload: false,
|
||||
},
|
||||
global: {
|
||||
userGds: true,
|
||||
defaultSelectedLanguage: locale || 'en',
|
||||
defaultSelectedLanguage: locale ?? 'en',
|
||||
languageCoverages: languageCodes.value,
|
||||
},
|
||||
loginMethod: {
|
||||
params: {
|
||||
inflow_path: stoveInflowPath,
|
||||
game_no: stoveGameNo,
|
||||
show_play_button: stoveGnbData?.stove_install_button_visible || 'Y',
|
||||
show_play_button: stoveGnbData?.stove_install_button_visible ?? 'Y',
|
||||
},
|
||||
redirectCurrentPage: true,
|
||||
windowTitle: undefined,
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import type { GameDataValue } from '#layers/types/api/gameData'
|
||||
let mountedInstance: any = null
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const baseDomain = `${runtimeConfig.public.baseDomain}`
|
||||
|
||||
onMounted(() => {
|
||||
const gameDataStore = useGameDataStore()
|
||||
const gameData = gameDataStore.gameData as GameDataValue
|
||||
const langCodes = gameData?.lang_codes
|
||||
const defaultLangCode = gameData?.default_lang_code
|
||||
const stoveGnbData = gameData?.stove_gnb_json
|
||||
const designTheme = gameData?.design_theme
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const langCodes = gameData.value?.lang_codes
|
||||
const defaultLangCode = gameData.value?.default_lang_code
|
||||
const stoveGnbData = gameData.value?.stove_gnb_json
|
||||
const designTheme = gameData.value?.design_theme
|
||||
|
||||
const currentDomain =
|
||||
window.location.protocol + '//' + window.location.hostname
|
||||
@@ -22,8 +22,8 @@ onMounted(() => {
|
||||
mobile: '',
|
||||
},
|
||||
widget: {
|
||||
notification: stoveGnbData?.notify_icon_visible || true,
|
||||
stoveDownload: stoveGnbData?.stove_install_button_visible || true,
|
||||
notification: stoveGnbData?.notify_icon_visible ?? true,
|
||||
stoveDownload: stoveGnbData?.stove_install_button_visible ?? true,
|
||||
languageSelect: false,
|
||||
themeSelect: false,
|
||||
stoveMenu: {
|
||||
@@ -33,7 +33,7 @@ onMounted(() => {
|
||||
},
|
||||
global: {
|
||||
languageCoverages: langCodes,
|
||||
defaultSelectedLanguage: defaultLangCode || 'en',
|
||||
defaultSelectedLanguage: defaultLangCode ?? 'en',
|
||||
},
|
||||
loginMethod: {
|
||||
redirectCurrentPage: true,
|
||||
|
||||
@@ -10,7 +10,7 @@ import { csrFormatJWT } from '#layers/utils/formatUtil'
|
||||
*/
|
||||
export const csrGoStoveLogin = () => {
|
||||
if (!import.meta.client) return
|
||||
|
||||
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const gameDataStore = useGameDataStore()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user