更换下载方式
This commit is contained in:
parent
3f94799b5f
commit
a75b47c218
|
@ -127,7 +127,13 @@ export default {
|
|||
},
|
||||
// 下载
|
||||
downLoad(path) {
|
||||
window.open(path)
|
||||
// window.open(path)
|
||||
const fileUrl = path; // 替换为实际的文件 URL
|
||||
const link = document.createElement('a');
|
||||
link.href = fileUrl;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
},
|
||||
pageChange(page) {
|
||||
this.tableFrom.page = page;
|
||||
|
|
Loading…
Reference in New Issue