// 导出模板
export function exportTemplateExcel(url, params, config = {}) {
return new Promise((resolve, reject) => {
axios
.get(url, { params: params, responseType: 'blob', ...config })
.then(res => {
resolve(res);
})
.catch(err => {
reject(err.data);
});
});
}
标签:resolve,浏览器,res,兼容,react,params,reject,config
From: https://www.cnblogs.com/heavenTang/p/16813329.html