fix. 서버 미들웨어, 미들웨어 수정

This commit is contained in:
clkim
2025-12-19 17:39:46 +09:00
parent 4ca299be4a
commit 1d936966ae
25 changed files with 592 additions and 798 deletions

View File

@@ -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',

View File

@@ -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>