Add timeout for theme fetching

pull/25/head
johnniang 2019-05-30 23:08:21 +08:00
parent 9333a6942c
commit 236ccb7868
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ themeApi.upload = (formData, uploadProgress, cancelToken) => {
themeApi.fetching = url => { themeApi.fetching = url => {
return service({ return service({
url: `${baseUrl}/fetching`, url: `${baseUrl}/fetching`,
timeout: 60,
params: { params: {
uri: url uri: url
}, },