【修改】 下载参数使用错误

This commit is contained in:
dlaren
2025-08-19 17:12:12 +08:00
parent 1431a96dad
commit adf09b6ead

View File

@@ -380,9 +380,10 @@ const handleDelete = async (id: number) => {
const downloadFile = async (temporaryId: string) => { const downloadFile = async (temporaryId: string) => {
const res = await MonitorApi.getMonitorStuFileUrl(temporaryId) const res = await MonitorApi.getMonitorStuFileUrl(temporaryId)
console.log(res)
const url = res const url = res
try { try {
const response = await fetch(temporaryId) const response = await fetch(url)
if (!response.ok) { if (!response.ok) {
throw new Error('下载失败') throw new Error('下载失败')
} }