fix. stove gnb 옵션 적용
This commit is contained in:
@@ -28,7 +28,7 @@ const loadGnb = (locale: string) => {
|
|||||||
const gnbOption = {
|
const gnbOption = {
|
||||||
wrapper: '#stove-wrap',
|
wrapper: '#stove-wrap',
|
||||||
isResponsive: true,
|
isResponsive: true,
|
||||||
skin: stoveGnbData?.skin_type || 'gnb-dark-mini',
|
skin: 'gnb-dark-mini',
|
||||||
widget: {
|
widget: {
|
||||||
gameListAndService: false,
|
gameListAndService: false,
|
||||||
languageSelect: false,
|
languageSelect: false,
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ onMounted(() => {
|
|||||||
mobile: '',
|
mobile: '',
|
||||||
},
|
},
|
||||||
widget: {
|
widget: {
|
||||||
notification: true,
|
notification: stoveGnbData?.notify_icon_visible || true,
|
||||||
stoveDownload: true,
|
stoveDownload: stoveGnbData?.stove_install_button_visible || true,
|
||||||
languageSelect: false,
|
languageSelect: false,
|
||||||
themeSelect: false,
|
themeSelect: false,
|
||||||
stoveMenu: {
|
stoveMenu: {
|
||||||
@@ -40,9 +40,8 @@ onMounted(() => {
|
|||||||
},
|
},
|
||||||
mode: {
|
mode: {
|
||||||
theme: {
|
theme: {
|
||||||
support: ['light', 'dark'],
|
support: designTheme === 1 ? ['light'] : ['dark'],
|
||||||
default: designTheme === 1 ? 'light' : 'dark',
|
default: designTheme === 1 ? 'light' : 'dark',
|
||||||
// support: designTheme === 1 ? ['light'] : ['dark'],
|
|
||||||
},
|
},
|
||||||
mini: true,
|
mini: true,
|
||||||
layout: 'wide',
|
layout: 'wide',
|
||||||
@@ -54,7 +53,7 @@ onMounted(() => {
|
|||||||
stoveGnbOptions
|
stoveGnbOptions
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if(mountedInstance){
|
if (mountedInstance) {
|
||||||
//Stove GNB에서도 쿠키를 굽고 있어 소문자로 통일
|
//Stove GNB에서도 쿠키를 굽고 있어 소문자로 통일
|
||||||
//LOCALE 쿠키를 가져온 후 소문자로 변경해서 다시 LOCALE 쿠키를 설정
|
//LOCALE 쿠키를 가져온 후 소문자로 변경해서 다시 LOCALE 쿠키를 설정
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
@@ -66,10 +65,8 @@ onMounted(() => {
|
|||||||
localeCookie.value = localeCookie.value.toLowerCase()
|
localeCookie.value = localeCookie.value.toLowerCase()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
if (mountedInstance && typeof mountedInstance.destroy === 'function') {
|
if (mountedInstance && typeof mountedInstance.destroy === 'function') {
|
||||||
mountedInstance.destroy()
|
mountedInstance.destroy()
|
||||||
|
|||||||
@@ -212,8 +212,8 @@ export type StoveGnbSkinType =
|
|||||||
|
|
||||||
// Stove GNB 타입
|
// Stove GNB 타입
|
||||||
export interface GameDataStoveGnb {
|
export interface GameDataStoveGnb {
|
||||||
skin_type: StoveGnbSkinType
|
notify_icon_visible: boolean
|
||||||
stove_install_button_visible: string
|
stove_install_button_visible: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
// 이벤트 배너 타입
|
// 이벤트 배너 타입
|
||||||
|
|||||||
Reference in New Issue
Block a user