Parcourir la Source

延迟请求超时时间

Pan il y a 7 ans
Parent
commit
f65e714e9e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/utils/fetch.js

+ 1 - 1
src/utils/fetch.js

@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth';
7 7
 // 创建axios实例
8 8
 const service = axios.create({
9 9
   baseURL: process.env.BASE_API, // api的base_url
10
-  timeout: 5000                  // 请求超时时间
10
+  timeout: 15000                  // 请求超时时间
11 11
 });
12 12
 
13 13
 // request拦截器