diff --git a/src/views/system/exportFile/index.vue b/src/views/system/exportFile/index.vue index 050fcf2..985b655 100644 --- a/src/views/system/exportFile/index.vue +++ b/src/views/system/exportFile/index.vue @@ -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;