he wei
2022-11-17 cd327dcbaca3476df44b064e56b950dc054cbb87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import axios from 'axios';
 
axios.defaults.baseURL = 'http://localhost:8093/res/';
axios.defaults.withCredentials = true;  // 保持请求头
 
 
// 添加响应拦截器
axios.interceptors.response.use(function (response) {
    // 对响应数据做点什么
    return response;
}, function (error) {
    return Promise.reject(error);
});
 
export default axios;