feat: 更新Walmart统计概览下载接口,添加响应类型为blob以支持文件下载

This commit is contained in:
danial
2025-05-21 23:57:25 +08:00
parent 56b3e7c501
commit 8149d6a483

View File

@@ -67,9 +67,14 @@ watch(
const handleDownload = async () => {
try {
const res = await apiClient.apiCardInfoWalmartStatsOverviewDownloadGet({
groupId: props.groupId
});
const res = await apiClient.apiCardInfoWalmartStatsOverviewDownloadGet(
{
groupId: props.groupId
},
{
responseType: 'blob'
}
);
handleDownLoadFile(res.data as Blob, `${props.groupName}-统计信息.xlsx`);
} catch (error) {
console.error(error);