axios timeout
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
axios.defaults.baseURL = BASE_PATH;
|
||||
axios.defaults.headers.post['Content-Type'] = 'application/json';
|
||||
axios.defaults.timeout = 10000;
|
||||
|
||||
// 添加请求拦截器
|
||||
axios.interceptors.request.use(function (config) {
|
||||
|
||||
Reference in New Issue
Block a user