Commit e5e9e0b4 by Denglingling

调整请求超时时间5分钟

(cherry picked from commit e77570fa)
parent 4bbcb5c9
Showing with 3 additions and 3 deletions
......@@ -9,7 +9,7 @@ export const PostRequest = (BaseUrl, url, paramsObject) => {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
timeout: 20000 //20s超时
timeout: 300000 //5min超时
};
if(paramsObject) {
opts.body = JSON.stringify(paramsObject)
......@@ -30,7 +30,7 @@ export const GetRequest = (BaseUrl, url) => {
headers: {
'Content-Type': 'application/json'
},
timeout: 20000 //20s超时
timeout: 300000 //5min超时
};
return fetch(BaseUrl + VERSION + url, opts)
.then(response => response.json())
......@@ -48,7 +48,7 @@ export const UploadRequest = (BaseUrl, url,datas) => {
headers: {
'Content-Type': 'multipart/form-data'
},
timeout: 20000 //20s超时
timeout: 300000 //5min超时
};
return fetch(`${BaseUrl}${VERSION}${url}`, opts)
.then(response => response.json())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment