This commit is contained in:
张成
2025-10-28 15:51:56 +08:00
parent 42c977b815
commit 0a723c4dfe
3 changed files with 14 additions and 12 deletions

View File

@@ -210,8 +210,7 @@ class Http {
let res = await axios.post(url, formData, config)
filename = filename || res.headers['content-disposition'].split('filename=')[1].split(';')[0]
// 开头和结尾去掉 中间不去掉
filename = filename.replace(/^[_-]+|[_-]+$/g, '')
// 直接下载
if (is_down) {