Explorar o código

延迟请求超时时间

Pan %!s(int64=7) %!d(string=hai) anos
pai
achega
f65e714e9e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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拦截器