feat: 更新Walmart统计概览下载接口,添加响应类型为blob以支持文件下载
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user