axios timeout

This commit is contained in:
尹吉欢
2018-04-16 13:03:14 +08:00
parent 219337fb94
commit 11cd4e9eef
+1
View File
@@ -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) {