diff --git a/layers/components/blocks/StoveGnb.vue b/layers/components/blocks/StoveGnb.vue index aee890f..1de2064 100644 --- a/layers/components/blocks/StoveGnb.vue +++ b/layers/components/blocks/StoveGnb.vue @@ -28,7 +28,7 @@ const loadGnb = (locale: string) => { const gnbOption = { wrapper: '#stove-wrap', isResponsive: true, - skin: stoveGnbData?.skin_type || 'gnb-dark-mini', + skin: 'gnb-dark-mini', widget: { gameListAndService: false, languageSelect: false, diff --git a/layers/components/blocks/StoveGnbNew.vue b/layers/components/blocks/StoveGnbNew.vue index df59aac..940334f 100644 --- a/layers/components/blocks/StoveGnbNew.vue +++ b/layers/components/blocks/StoveGnbNew.vue @@ -22,8 +22,8 @@ onMounted(() => { mobile: '', }, widget: { - notification: true, - stoveDownload: true, + notification: stoveGnbData?.notify_icon_visible || true, + stoveDownload: stoveGnbData?.stove_install_button_visible || true, languageSelect: false, themeSelect: false, stoveMenu: { @@ -40,9 +40,8 @@ onMounted(() => { }, mode: { theme: { - support: ['light', 'dark'], + support: designTheme === 1 ? ['light'] : ['dark'], default: designTheme === 1 ? 'light' : 'dark', - // support: designTheme === 1 ? ['light'] : ['dark'], }, mini: true, layout: 'wide', @@ -54,7 +53,7 @@ onMounted(() => { stoveGnbOptions ) } - if(mountedInstance){ + if (mountedInstance) { //Stove GNB에서도 쿠키를 굽고 있어 소문자로 통일 //LOCALE 쿠키를 가져온 후 소문자로 변경해서 다시 LOCALE 쿠키를 설정 nextTick(() => { @@ -66,10 +65,8 @@ onMounted(() => { localeCookie.value = localeCookie.value.toLowerCase() }) } - }) - onBeforeUnmount(() => { if (mountedInstance && typeof mountedInstance.destroy === 'function') { mountedInstance.destroy() diff --git a/layers/types/api/gameData.ts b/layers/types/api/gameData.ts index f6b2813..5fadf96 100644 --- a/layers/types/api/gameData.ts +++ b/layers/types/api/gameData.ts @@ -212,8 +212,8 @@ export type StoveGnbSkinType = // Stove GNB 타입 export interface GameDataStoveGnb { - skin_type: StoveGnbSkinType - stove_install_button_visible: string + notify_icon_visible: boolean + stove_install_button_visible: boolean } // 이벤트 배너 타입