Browse Source

修改请求超时时间

周玉佂 4 months ago
parent
commit
0a055e9274
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/http.js

+ 1 - 1
src/utils/http.js

@@ -8,7 +8,7 @@ import screenfull from "screenfull";
 axios.defaults.baseURL = baseUrl;
 // axios.defaults.baseURL = "/api";
 
-axios.defaults.timeout = 30000; // 超时时间
+axios.defaults.timeout = 300000; // 超时时间
 axios.defaults.headers.common["Content-Type"] =
   "application/JSON;charset=UTF-8";
 axios.defaults.withCredentials = true;