mirror of https://github.com/halo-dev/halo
Change timeout for theme api
parent
4f20f92807
commit
083c417e9f
|
@ -78,7 +78,7 @@ themeApi.getProperty = themeId => {
|
||||||
themeApi.upload = (formData, uploadProgress, cancelToken) => {
|
themeApi.upload = (formData, uploadProgress, cancelToken) => {
|
||||||
return service({
|
return service({
|
||||||
url: `${baseUrl}/upload`,
|
url: `${baseUrl}/upload`,
|
||||||
timeout: 8640000, // 24 hours
|
timeout: 86400000, // 24 hours
|
||||||
data: formData, // form data
|
data: formData, // form data
|
||||||
onUploadProgress: uploadProgress,
|
onUploadProgress: uploadProgress,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
|
@ -89,7 +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,
|
timeout: 60000,
|
||||||
params: {
|
params: {
|
||||||
uri: url
|
uri: url
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue