Browse Source

延迟请求超时时间

Pan 7 years ago
parent
commit
f65e714e9e
1 changed files with 1 additions and 1 deletions
  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拦截器