fix. [PWT-122] 액션 버튼 다운로드 버튼 모바일 다운로드 시 파일 확장자 오류 수정

This commit is contained in:
clkim
2025-11-28 14:38:57 +09:00
parent 25f38273cd
commit e5f0bf7992
2 changed files with 18 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ const componentTag = computed((): string => {
switch (props.type) {
case 'external':
case 'link':
case 'download':
return 'a'
case 'internal':
return 'AtomsLocaleLink'
@@ -45,6 +46,14 @@ const componentProps = computed(() => {
}
}
if (props.type === 'download') {
return {
href: props.href,
target: '_self',
download: props.href?.split('/').pop() ?? 'download',
}
}
return {}
})
</script>