fix. utils 함수 리팩토링
This commit is contained in:
12
app/app.vue
12
app/app.vue
@@ -37,16 +37,16 @@ const setupAllMetaData = (data: GameDataValue) => {
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
href: getResourceHost(faviconPath[0]),
|
||||
href: formatPathHost(faviconPath[0]),
|
||||
},
|
||||
{
|
||||
rel: 'apple-touch-icon',
|
||||
href: getResourceHost(faviconPath[1]),
|
||||
href: formatPathHost(faviconPath[1]),
|
||||
},
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/png',
|
||||
href: getResourceHost(faviconPath[2]),
|
||||
href: formatPathHost(faviconPath[2]),
|
||||
},
|
||||
]
|
||||
|
||||
@@ -59,7 +59,7 @@ const setupAllMetaData = (data: GameDataValue) => {
|
||||
data.comm_img_json?.groups
|
||||
?.map(
|
||||
({ img_name, img_path }) =>
|
||||
`--${img_name}: url(${getResourceHost(img_path?.comm ?? '')});`
|
||||
`--${img_name}: url(${formatPathHost(img_path?.comm ?? '')});`
|
||||
)
|
||||
.join('\n ') ?? ''
|
||||
|
||||
@@ -76,10 +76,10 @@ const setupAllMetaData = (data: GameDataValue) => {
|
||||
{ name: 'description', content: meta.page_desc },
|
||||
{ property: 'og:title', content: meta.og_title },
|
||||
{ property: 'og:description', content: meta.og_desc },
|
||||
{ property: 'og:image', content: getResourceHost(meta.og_image) },
|
||||
{ property: 'og:image', content: formatPathHost(meta.og_image) },
|
||||
{ name: 'twitter:title', content: meta.x_title },
|
||||
{ name: 'twitter:description', content: meta.x_desc },
|
||||
{ name: 'twitter:image', content: getResourceHost(meta.x_image) },
|
||||
{ name: 'twitter:image', content: formatPathHost(meta.x_image) },
|
||||
],
|
||||
htmlAttrs: {
|
||||
'data-game': data.game_name || '',
|
||||
|
||||
@@ -213,7 +213,7 @@ const enabledMarkets = computed(() => {
|
||||
const logoImgUrl = computed(() => {
|
||||
const currentLocale = locale.value || 'ko'
|
||||
const localeData = (webInspectionData.value as any)?.[currentLocale]
|
||||
return getResourceHost(localeData.img_json.bi_large)
|
||||
return formatPathHost(localeData.img_json.bi_large)
|
||||
})
|
||||
|
||||
const communityUrl = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user