fix. gameData 개별 속성 구조분해

This commit is contained in:
clkim
2026-01-13 18:07:43 +09:00
parent 7e98721228
commit 79b9d71aa3
17 changed files with 104 additions and 117 deletions

View File

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