优化数据分组逻辑.

This commit is contained in:
lijiahangmax
2024-08-23 01:44:05 +08:00
parent 252c538571
commit 1fca5a1912
17 changed files with 101 additions and 213 deletions

View File

@@ -109,7 +109,7 @@ export function openDownloadFile(url: string) {
* 下载文件
*/
export function downloadFile(res: any, fileName: string = '') {
const blob = new Blob([res.data]);
const blob = new Blob([res.data], { type: 'application/octet-stream' });
const tempLink = document.createElement('a');
const blobURL = window.URL.createObjectURL(blob);
tempLink.style.display = 'none';