😎下载文件默认原始文件名

This commit is contained in:
zuohuaijun 2025-01-26 01:59:19 +08:00
parent e11704d0e9
commit c4ea5296cb

View File

@ -287,7 +287,7 @@ const handleUpload = async () => {
const handleDownload = async (row: any) => {
// var res = await getAPI(SysFileApi).sysFileDownloadPost({ id: row.id });
var fileUrl = fetchFileUrl(row);
downloadByUrl({ url: fileUrl });
downloadByUrl({ url: fileUrl, fileName: row.fileName });
};
//