|
|
@ -179,7 +179,7 @@ const download = async (url:any,name:any) => { |
|
|
|
const a = document.createElement('a') |
|
|
|
const a = document.createElement('a') |
|
|
|
a.style.display = 'none' |
|
|
|
a.style.display = 'none' |
|
|
|
document.body.appendChild(a) |
|
|
|
document.body.appendChild(a) |
|
|
|
a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url |
|
|
|
a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin' + url |
|
|
|
a.setAttribute('download', name); |
|
|
|
a.setAttribute('download', name); |
|
|
|
a.click() |
|
|
|
a.click() |
|
|
|
document.body.removeChild(a) |
|
|
|
document.body.removeChild(a) |
|
|
|