From 45a4d6c69e48313371a2e4d05e875a075f8058d9 Mon Sep 17 00:00:00 2001 From: johnniang Date: Thu, 30 May 2019 23:09:37 +0800 Subject: [PATCH] Change timeout for theme api --- src/api/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/theme.js b/src/api/theme.js index ff194454..e6a10e02 100644 --- a/src/api/theme.js +++ b/src/api/theme.js @@ -78,7 +78,7 @@ themeApi.getProperty = themeId => { themeApi.upload = (formData, uploadProgress, cancelToken) => { return service({ url: `${baseUrl}/upload`, - timeout: 8640000, // 24 hours + timeout: 86400000, // 24 hours data: formData, // form data onUploadProgress: uploadProgress, cancelToken: cancelToken, @@ -89,7 +89,7 @@ themeApi.upload = (formData, uploadProgress, cancelToken) => { themeApi.fetching = url => { return service({ url: `${baseUrl}/fetching`, - timeout: 60, + timeout: 60000, params: { uri: url },