From d14bd41b68e93475db976f20a72cd3d662c75326 Mon Sep 17 00:00:00 2001
From: Peng-YM <1048217874pengym@gmail.com>
Date: Sun, 30 Aug 2020 21:58:31 +0800
Subject: [PATCH] Add more timeout to axios
---
backend/.idea/workspace.xml | 5 ++++-
web/src/utils/index.js | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml
index c36041e..b83ab25 100644
--- a/backend/.idea/workspace.xml
+++ b/backend/.idea/workspace.xml
@@ -19,7 +19,9 @@
-
+
+
+
@@ -76,6 +78,7 @@
+
diff --git a/web/src/utils/index.js b/web/src/utils/index.js
index 227f555..7e14c42 100644
--- a/web/src/utils/index.js
+++ b/web/src/utils/index.js
@@ -4,7 +4,7 @@ import {BACKEND_BASE} from "@/config";
export const axios = Axios.create({
baseURL: `${BACKEND_BASE}/api`,
- timeout: 1000
+ timeout: 10000
});
export function isEmptyObj(obj) {