feat:导出返回数据改为文件流

This commit is contained in:
不做码农
2022-12-05 18:37:40 +08:00
parent 6611f513f3
commit f5c0588f42
5 changed files with 34 additions and 13 deletions

View File

@@ -566,11 +566,8 @@ function handleExport() {
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return export${genTable.BusinessName}(queryParams)
})
.then((response) => {
proxy.download(response.data.path)
.then(async () => {
await export${genTable.BusinessName}(queryParams)
})
}
$end