This commit is contained in:
shiziyuan9527 2020-09-23 11:07:59 +08:00
commit e3a6fdfecc
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ export default {
.then(response => {
let fileName = window.decodeURI(response.headers['content-disposition'].split('=')[1]);
let link = document.createElement("a");
link.href = window.URL.createObjectURL(new Blob([response.data], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}));
link.href = window.URL.createObjectURL(new Blob([response.data]));
link.download = fileName;
link.click();
});