Browse Source

fix: cancel timeout

icenaked 3 years ago
parent
commit
14c8e46e76
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/utils/request.js

+ 2 - 1
src/utils/request.js

@@ -6,7 +6,8 @@ const service = axios.create({
     // baseURL: 'https://www.easy-mock.com/mock/592501a391470c0ac1fab128',
     //baseURL: 'http://localhost:8080',
     baseURL: "",
-    timeout: 5000
+    //不能加timeout,不然很多需要时间的功能会跑一半挂掉(如模型训练)
+    //timeout: 5000
 });
 
 service.interceptors.request.use(