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