请求超时时间修改为 10s

This commit is contained in:
pushuo 2022-09-09 09:46:49 +08:00 committed by Edward Yang
parent 7111fdfa2b
commit 9d65337fbd
1 changed files with 1 additions and 1 deletions

View File

@ -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;