...
首先给axios设置 responseType: blob 下载方式:一 使用a标签下载 下载方式:二 使用fileDownload插件下载 git地址:https: github.com kennethjiang js file download ...
2020-10-30 10:33 0 2408 推荐指数:
...
...
现在有一个导出文件的需求,后台需要post传递参数 普通的文件导出使用下面的方式 现在需要使用axios的put方法 ...
axio请求里必须加 responseType: 'blob' 参数,如下 //下载文件 api.download=function(id) { return request({ url: this.baseUrl+'/download/'+id, method ...
exportFun(){ let _that = this const instance = this.axios.create({ onDownloadProgress: function ...
...