refactor: 타입스크립트 수정, useCommonStore.ts 삭제

This commit is contained in:
“hyeonggkim”
2025-11-03 18:21:47 +09:00
parent ad81d63a1f
commit b80c31d778
8 changed files with 34 additions and 135 deletions

View File

@@ -15,9 +15,14 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
//현재 url에서 게임 도메인만 추출
const currentDomain = window.location.hostname;
const config = useRuntimeConfig()
const req: GameDataRequest = {
gameDomain: `${currentDomain}`,
langCode: `${currentLangCode}`,
game_alias: '',
lang_code: `${currentLangCode}`,
baseApiUrl: `${config.public.stoveApiUrl}`,
gameId: '',
}
const { getGameDataExternal } = useGetGameDataExternal()
await getGameDataExternal(req)