|
|
|
@ -209,15 +209,15 @@ const headerChange = (pageNumber: any) => { |
|
|
|
|
} |
|
|
|
|
// 下载文件 |
|
|
|
|
const download = async (url:any,name:any) => { |
|
|
|
|
// window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url) |
|
|
|
|
window.open(import.meta.env.VITE_APP_BASE_API + '/sys/common/zuopin/' + url) |
|
|
|
|
const a = document.createElement('a') |
|
|
|
|
a.style.display = 'none' |
|
|
|
|
document.body.appendChild(a) |
|
|
|
|
a.href = import.meta.env.VITE_APP_BASE_API + '/sys/common' + url |
|
|
|
|
a.setAttribute('download', name); |
|
|
|
|
a.click() |
|
|
|
|
document.body.removeChild(a) |
|
|
|
|
|
|
|
|
|
document.body.removeChild(a) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const saveEvent = async (id: any) => { |
|
|
|
|