fix. 서버 미들웨어, 미들웨어 수정
This commit is contained in:
@@ -6,9 +6,9 @@ import type {
|
||||
} from '#layers/types/api/eventNavigation'
|
||||
|
||||
const { locale } = useI18n()
|
||||
const gameDomain = useGetGameDomain()
|
||||
const { sendLog } = useAnalytics()
|
||||
|
||||
const gameDomain = getGameDomain()
|
||||
const analytics = {
|
||||
action_type: 'click',
|
||||
click_sarea: 'EventNavigation',
|
||||
|
||||
@@ -14,11 +14,12 @@ const props = defineProps<Props>()
|
||||
|
||||
const mainContentRef = ref<HTMLElement>()
|
||||
|
||||
const { locale } = useI18n()
|
||||
const { tm, locale } = useI18n()
|
||||
const { height: viewportH } = useWindowSize()
|
||||
const { bottom: mainBottom } = useElementBounding(mainContentRef)
|
||||
const { getTemplateComponent } = useTemplateRegistry()
|
||||
const loadingStore = useLoadingStore()
|
||||
const modalStore = useModalStore()
|
||||
|
||||
const { isPAssApiLoading, hasApiCallStarted } = storeToRefs(loadingStore)
|
||||
|
||||
@@ -80,6 +81,17 @@ onMounted(() => {
|
||||
if (!hasApiCallStarted.value) {
|
||||
loadingStore.stopFullLoading()
|
||||
}
|
||||
|
||||
// 페이지 접근 권한 설정(로그인 유무)
|
||||
if (props.pageData?.is_login_required === 1 && !csrGetAccessToken()) {
|
||||
modalStore.handleOpenConfirm({
|
||||
contentText: tm('Alert_StoveLogin'),
|
||||
confirmButtonText: tm('Text_StoveLogin'),
|
||||
confirmButtonEvent: () => {
|
||||
csrGoStoveLogin()
|
||||
},
|
||||
})
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user