fix. utils 함수 리팩토링

This commit is contained in:
clkim
2025-12-01 14:23:35 +09:00
parent 10ce30e149
commit 9b3b7b4ee3
20 changed files with 120 additions and 162 deletions

View File

@@ -61,7 +61,7 @@ const inlineStyle = computed<CSSProperties>(() => {
style.color = props.textColor
}
if (props.type === 'duplication') {
style.backgroundImage = `url(${getResourceHost(DUP_IMAGE_MAP[props.platform], { imageType: 'common' })})`
style.backgroundImage = `url(${formatPathHost(DUP_IMAGE_MAP[props.platform], { imageType: 'common' })})`
}
return style
})

View File

@@ -67,7 +67,7 @@ const handleCopy = async () => {
target="_blank"
class="sns-item"
:style="{
backgroundImage: `url(${getResourceHost(`/images/common/ic-v2-logo-${key}-fill.png`, { imageType: 'common' })})`,
backgroundImage: `url(${formatPathHost(`/images/common/ic-v2-logo-${key}-fill.png`, { imageType: 'common' })})`,
}"
>
<span class="sr-only">{{ key }}</span>
@@ -77,7 +77,7 @@ const handleCopy = async () => {
type="button"
class="sns-item"
:style="{
backgroundImage: `url(${getResourceHost('/images/common/ic-v2-community-link-line.png', { imageType: 'common' })})`,
backgroundImage: `url(${formatPathHost('/images/common/ic-v2-community-link-line.png', { imageType: 'common' })})`,
}"
@click="handleCopy"
>