摘要: 直接在报错的前一行添加 // @ts-ignore 阅读全文
posted @ 2020-09-03 10:56 hannahY 阅读(1819) 评论(0) 推荐(1) 编辑
摘要: 第一种:直接通过连接下载Excel window.location.href = 'https://x.x.x.243/static/sample/template.xlsx'; 第二种:后端返回文件流下载导出Excel 首先 axios需要设置 responseType: 'blob'; 如果需要 阅读全文
posted @ 2020-09-03 10:48 hannahY 阅读(317) 评论(0) 推荐(0) 编辑