更换下载方式

This commit is contained in:
faiz 2024-12-20 09:09:42 +08:00
parent 3f94799b5f
commit a75b47c218
1 changed files with 7 additions and 1 deletions

View File

@ -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;