Auto backup \2026-\04-\20

This commit is contained in:
Ubuntu
2026-08-25 16:00:02 +08:00
parent 952b9f0816
commit 920b299af2
13 changed files with 8 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+8
View File
@@ -20,6 +20,14 @@ api.interceptors.request.use(
if (token) {
config.headers.Authorization = `Bearer ${token}`
}
// FormData 上传必须移除 JSON 默认 Content-Type,让浏览器自动加 multipart boundary
if (typeof FormData !== 'undefined' && config.data instanceof FormData) {
if (typeof config.headers.delete === 'function') {
config.headers.delete('Content-Type')
} else {
delete config.headers['Content-Type']
}
}
return config
},
(error) => Promise.reject(error)