Explorar o código

延迟请求超时时间

Pan %!s(int64=8) %!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';
 // 创建axios实例
 const service = axios.create({
   baseURL: process.env.BASE_API, // api的base_url
-  timeout: 5000                  // 请求超时时间
+  timeout: 15000                  // 请求超时时间
 });
 
 // request拦截器