设置接口响应最大时长10秒

develoop
JayChou 2 weeks ago
parent a2090da8cc
commit fbf7811e7e
  1. 2
      src/utils/request.ts

@ -5,7 +5,7 @@ import useUserStore from '@/store/modules/user'
//创建axios实例
const request = axios.create({
baseURL: import.meta.env.VITE_APP_BASE_API,
timeout: 5000,
timeout: 10000,
})
//请求拦截器
request.interceptors.request.use((config) => {

Loading…
Cancel
Save