const blob = new Blob([res.data], {
type: 'application/vnd.ms-excel',
});
const link = document.createElement('a');
link.download = `资金统计报表.xlsx`;
link.style.display = 'none';
const blobUrl = window.URL.createObjectURL(blob);
link.href = blobUrl;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
接口请求需要增加responseType: 'blob',