fix. 알수없는 오류 얼럿에 스토브 고객센터 url 적용

This commit is contained in:
clkim
2025-11-07 13:09:22 +09:00
parent aafc3ae9b9
commit b5f723397b
11 changed files with 50 additions and 19 deletions

View File

@@ -6,14 +6,18 @@ interface Props {
const props = defineProps<Props>()
const { locale } = useI18n()
const runtimeConfig = useRuntimeConfig()
const gameDataStore = useGameDataStore()
const modalStore = useModalStore()
const { gameData } = useGameDataStore()
const { handleTokenValidation } = useTokenValidation()
const { getPreregist, setPreregist } = usePreregist()
const { isNorthAmerica, countryCode } = useGds()
// Multilingual
const { locale } = useI18n()
const { gameData } = storeToRefs(gameDataStore)
const stoveCs = runtimeConfig.public.stoveCs
const customerServiceUrl = `${stoveCs}/${gameData.value?.game_id}`
// Props로 전달받은 tm 또는 전역 i18n의 tm 사용
const t = (key: string) => {
@@ -27,7 +31,7 @@ const t = (key: string) => {
const tWithGameName = (key: string) => {
const text = t(key)
if (typeof text === 'string' && text.includes('%게임명%')) {
const gameName = gameData?.game_name ?? ''
const gameName = gameData.value?.game_name ?? ''
return text.replace(/%게임명%/g, gameName)
}
return text
@@ -128,7 +132,7 @@ const showErrorModal = (code: number) => {
contentText: t('Alert_Error'),
confirmButtonText: t('Text_Customer'),
confirmButtonEvent: () => {
window.open('aa', '_blank')
window.open(customerServiceUrl, '_blank')
},
})
}