fix. gameData 개별 속성 구조분해
This commit is contained in:
@@ -9,17 +9,17 @@ export default defineNuxtRouteMiddleware(async to => {
|
||||
|
||||
try {
|
||||
const gameDataStore = useGameDataStore()
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const { gameId, langCodes } = storeToRefs(gameDataStore)
|
||||
|
||||
// app.vue에서 설정한 스토어 값이 없으면 대기
|
||||
if (!gameData.value) return
|
||||
if (!gameId.value || !langCodes.value) return
|
||||
|
||||
const stoveApiBaseUrl = `${runtimeConfig.public.stoveApiUrl}`
|
||||
// const baseDomain = `${runtimeConfig.public.baseDomain}`
|
||||
// const stoveMaintenanceApiUrl = `${runtimeConfig.public.stoveMaintenanceApiUrl}`
|
||||
const stoveGameId = gameData.value.game_id
|
||||
const stoveGameId = gameId.value
|
||||
|
||||
const finalLocale = csrGetFinalLocale(to.path, gameData.value.lang_codes)
|
||||
const finalLocale = csrGetFinalLocale(to.path, langCodes.value)
|
||||
|
||||
// 웹 점검 -----
|
||||
const { isWebInspection, getInspectionDataExternal } =
|
||||
|
||||
Reference in New Issue
Block a user