请求拦截获取文件类型response
2019-08-13 本文已影响0人
Mcarrot
let res = response.data
// 如果是返回的文件
if (response.config.responseType == 'blob' && response.config.url.indexOf("文件接口地址") !== -1) {
return response
}
let res = response.data
// 如果是返回的文件
if (response.config.responseType == 'blob' && response.config.url.indexOf("文件接口地址") !== -1) {
return response
}