请求超时时间修改为 10s
This commit is contained in:
parent
7111fdfa2b
commit
9d65337fbd
|
|
@ -7,7 +7,7 @@ const instance = axios.create({
|
|||
headers: {'X-CSRF-TOKEN': token},
|
||||
});
|
||||
|
||||
axios.defaults.timeout = 5000; // 请求超时
|
||||
axios.defaults.timeout = 10000; // 请求超时
|
||||
// axios.defaults.baseURL = process.env.NODE_ENV == 'production' ? process.env.VUE_APP_BASE_URL + '/' : '/';
|
||||
// console.log(process.env.VUE_APP_BASE_URL)
|
||||
axios.defaults.baseURL = base;
|
||||
|
|
|
|||
Loading…
Reference in New Issue