Merge pull request 'fix: 增加上传文件接口的超时时间' (#21) from yink into dev
Reviewed-on: https://gitea-inner.fontree.cn/scout666/chat-pc/pulls/21
This commit is contained in:
commit
e8a4d7e525
@ -48,7 +48,9 @@ request.interceptors.request.use((config) => {
|
||||
if (token) {
|
||||
config.headers['Authorization'] = `Bearer ${token}`
|
||||
}
|
||||
|
||||
if(config.url.indexOf('api/v1/upload/multipart') > -1){
|
||||
config.timeout = 600000
|
||||
}
|
||||
return config
|
||||
}, errorHandler)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user