Explorar el Código

优化;调整上传视频文件大小限制为20m

萤火科技 hace 3 años
padre
commit
ad0c753130
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/utils/request.js

+ 1 - 1
src/utils/request.js

@@ -16,7 +16,7 @@ const service = axios.create({
   // 服务端api地址
   // 服务端api地址
   // baseURL: process.env.NODE_ENV === 'production' ? publicConfig.BASE_API : process.env.VUE_APP_API_BASE_URL,
   // baseURL: process.env.NODE_ENV === 'production' ? publicConfig.BASE_API : process.env.VUE_APP_API_BASE_URL,
   baseURL: publicConfig.BASE_API,
   baseURL: publicConfig.BASE_API,
-  timeout: 25 * 1000 // 请求超时时间,25秒, 如果上传大文件需要更长
+  timeout: 60 * 1000 // 请求超时时间,60秒, 如果上传大文件需要更长
 })
 })
 
 
 // 接口请求拦截
 // 接口请求拦截