fix: 增加上传文件接口的超时时间

This commit is contained in:
yinkang 2025-07-10 15:32:56 +08:00
parent 6e0322e2c7
commit 21f413d6e3

View File

@ -48,7 +48,9 @@ request.interceptors.request.use((config) => {
if (token) { if (token) {
config.headers['Authorization'] = `Bearer ${token}` config.headers['Authorization'] = `Bearer ${token}`
} }
if(config.url.indexOf('api/v1/upload/multipart') > -1){
config.timeout = 600000
}
return config return config
}, errorHandler) }, errorHandler)