fix. 알수없는 오류 얼럿에 스토브 고객센터 url 적용
This commit is contained in:
@@ -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')
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user