Commit a4b1b9cb authored by yaya's avatar yaya

feat:修改超时时间

parent ce16c95b
......@@ -6,7 +6,7 @@ import { getToken } from '@/utils/auth'
// create an axios instance
const service = axios.create({
baseURL: process.env.BASE_API, // api 的 base_url
timeout: 5000 // request timeout
timeout: 10000 // request timeout
})
// request interceptor
......@@ -82,7 +82,7 @@ service.interceptors.response.use(
Message({
message: '登录连接超时(后台不能连接,请联系系统管理员)',
type: 'error',
duration: 10 * 1000
duration: 5 * 1000
})
return Promise.reject(error)
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment