fix. utils 함수 리팩토링
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
<a href="https://www.smilegate.com" target="_blank" class="smilegate">
|
||||
<img
|
||||
:src="
|
||||
getResourceHost(`/images/common/logo_smilegate.png`, {
|
||||
formatPathHost(`/images/common/logo_smilegate.png`, {
|
||||
imageType: 'common',
|
||||
})
|
||||
"
|
||||
@@ -190,7 +190,7 @@
|
||||
>
|
||||
<img
|
||||
:src="
|
||||
getResourceHost(`${setDevCi.dev_ci_img_path}`, {
|
||||
formatPathHost(`${setDevCi.dev_ci_img_path}`, {
|
||||
imageType: 'game',
|
||||
})
|
||||
"
|
||||
@@ -242,9 +242,12 @@ const getGameRatingImage = computed((): string[] => {
|
||||
}
|
||||
return contentInfo.map(item => {
|
||||
const type = ageTypeMap[item] || 'TypeTest'
|
||||
return getResourceHost(`/images/common/grades_age/${locale.value}/${type}.svg`, {
|
||||
imageType: 'common',
|
||||
})
|
||||
return formatPathHost(
|
||||
`/images/common/grades_age/${locale.value}/${type}.svg`,
|
||||
{
|
||||
imageType: 'common',
|
||||
}
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -266,7 +269,7 @@ const getContentInfoImage = computed((): string[] => {
|
||||
.map(item => {
|
||||
const type = contentTypeMap[item]
|
||||
return type
|
||||
? getResourceHost(`/images/common/grades_use/${type}.svg`, {
|
||||
? formatPathHost(`/images/common/grades_use/${type}.svg`, {
|
||||
imageType: 'common',
|
||||
})
|
||||
: ''
|
||||
@@ -281,7 +284,7 @@ const toggleAgeRating = (): void => {
|
||||
|
||||
const footerAgeRatingInfo = computed((): string[] => {
|
||||
const info = (tm as any)('Footer_AgeRating_Info')
|
||||
console.log("🚀 ~ info:", info)
|
||||
console.log('🚀 ~ info:', info)
|
||||
return Array.isArray(info) ? info : []
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -232,7 +232,7 @@ onMounted(() => {
|
||||
>
|
||||
<AtomsLocaleLink to="/" class="mx-auto md:hidden">
|
||||
<img
|
||||
:src="getResourceHost(gnbData?.bi_path)"
|
||||
:src="formatPathHost(gnbData?.bi_path)"
|
||||
:alt="gameData?.game_name"
|
||||
class="h-[30px]"
|
||||
/>
|
||||
@@ -249,7 +249,7 @@ onMounted(() => {
|
||||
<div class="nav-logo">
|
||||
<AtomsLocaleLink to="/" @click="handleMenuClose">
|
||||
<img
|
||||
:src="getResourceHost(gnbData?.bi_path)"
|
||||
:src="formatPathHost(gnbData?.bi_path)"
|
||||
:alt="gameData?.game_name"
|
||||
class="h-[30px]"
|
||||
/>
|
||||
|
||||
@@ -53,9 +53,9 @@ const setupSeoMeta = (metaTag: PageDataMetaTag) => {
|
||||
description: metaTag?.page_desc ?? '',
|
||||
ogTitle: metaTag?.og_title ?? '',
|
||||
ogDescription: metaTag?.og_desc ?? '',
|
||||
ogImage: getResourceHost(metaTag?.og_image) ?? '',
|
||||
ogImage: formatPathHost(metaTag?.og_image) ?? '',
|
||||
twitterTitle: metaTag?.x_title ?? '',
|
||||
twitterImage: getResourceHost(metaTag?.x_image) ?? '',
|
||||
twitterImage: formatPathHost(metaTag?.x_image) ?? '',
|
||||
twitterDescription: metaTag?.x_desc ?? '',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user