fix. [PWT-122] 액션 버튼 다운로드 버튼 모바일 다운로드 시 파일 확장자 오류 수정
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user