Skip to content

Commit

Permalink
fix: server-url add
Browse files Browse the repository at this point in the history
  • Loading branch information
laoer536 committed Jan 4, 2024
1 parent 5b51ef5 commit 360bb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/axios/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class MyAxios {
const a = document.createElement('a')
a.style.display = 'none'
a.download = fileName
a.href = serveBaseUrl ? `${serveBaseUrl}${fileUrl}` : fileUrl
a.href = fileUrl.startsWith('http') ? fileUrl : `${serveBaseUrl}${fileUrl}`
document.body.appendChild(a)
a.click()
URL.revokeObjectURL(a.href) // 释放URL 对象
Expand Down

0 comments on commit 360bb05

Please sign in to comment.