vue.config.js 中 module.exports里添加
transpileDependencies: ['element-ui'],
blob文件下载
const blob = new Blob([res]);//处理文档流
const fileName = 'fileName .xlsx'; //导出后的文件名
if (!!window.ActiveXObject || "ActiveXObject" in window || window.navigator.userAgent.indexOf('Edge/') > 0) {//判断是不是ie的浏览器
window.navigator.msSaveOrOpenBlob(blob, fileName);
} else {
const elink = document.createElement('a');
elink.download = fileName;
elink.style.display = 'none';
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
}