vue 接收后端返回文件流下载操作

image.png
requireJs添加download方法 重点在于配置responseType: 'blob'
接收后
image.png
当然也可以直接提到相关api下,传入文件名,项目紧急还没试其他实现

评论

暂无评论