摘要: 方式一 1.封装方法 export const download =(res,type, filename)//创建blob对象,解析流数据 const blob =new Blob([res.data],{ // type:'application/pdf;charset=UTF-8’表示下载文档 阅读全文
posted @ 2024-02-04 10:58 SKa-M 阅读(516) 评论(0) 推荐(0) 编辑