|
@@ -22,7 +22,7 @@ export const downloadFile = (url, fileName) => {
|
|
|
const url = window.URL.createObjectURL(blob)
|
|
|
const link = document.createElement('a')
|
|
|
link.href = url
|
|
|
- link.download = fileName
|
|
|
+ link.download = fileName||url.split('/').pop()
|
|
|
link.style.display = 'none'
|
|
|
document.body.appendChild(link)
|
|
|
link.click()
|