【修改】 下载参数使用错误
This commit is contained in:
@@ -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('下载失败')
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user