解决下载路径为空

This commit is contained in:
sjl
2025-12-22 15:13:43 +08:00
parent d69a6e1e5d
commit a52021572a
17 changed files with 529 additions and 440 deletions

View File

@@ -1,7 +1,7 @@
import { downloadFile } from '@/api/system-boot/file'
// 下载文件
export const download = (urls: string) => {
console.log("🚀 ~ download ~ urls:", urls)
export const download = (urls: any) => {
downloadFile({ filePath: urls }).then((res: any) => {
let blob = new Blob([res], {
type: urls.includes('.pdf')