mirror of https://github.com/halo-dev/halo-admin
Add timeout for theme fetching
parent
9333a6942c
commit
236ccb7868
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue