|
@@ -12,7 +12,7 @@ axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
const service = axios.create({
|
|
const service = axios.create({
|
|
baseURL: process.env.VUE_APP_BASE_API,
|
|
baseURL: process.env.VUE_APP_BASE_API,
|
|
// withCredentials: true, // 跨域请求时发送 cookies
|
|
// withCredentials: true, // 跨域请求时发送 cookies
|
|
- timeout: 10000
|
|
|
|
|
|
+ timeout: 30000
|
|
});
|
|
});
|
|
|
|
|
|
// 请求拦截器
|
|
// 请求拦截器
|