feat. home 버튼 컴포넌트 추가
This commit is contained in:
@@ -12,14 +12,13 @@ export const useGetGameDataExternal = () => {
|
||||
const webGameData = ref<GameDataResponse | null>(null)
|
||||
|
||||
const getGameDataExternal = async (req: GameDataRequest) => {
|
||||
console.log('🚀 ~ getGameDataExternal ~ req:', req)
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const stoveApiBaseUrl = runtimeConfig.public.stoveApiUrl
|
||||
const apiUrl = `${stoveApiBaseUrl}/pub-comm/v1.0/template/game?game_domain=${req.gameDomain}&lang_code=${req.langCode}`
|
||||
|
||||
try {
|
||||
const response = (await commonFetch('GET', apiUrl)) as GameDataResponse
|
||||
console.log('🚀 ~ getGameDataExternal ~ response:', response)
|
||||
console.log('🚀 ~ getGameDataExternal:', response.value)
|
||||
|
||||
// FIXME: 테스트용 데이터 ---------------------------------------------------
|
||||
/* if (['local', 'local-gate8', 'dev'].includes(`${runtimeConfig.public.runType}`)) {
|
||||
|
||||
Reference in New Issue
Block a user