1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| import axios from 'axios';
| import { setInterceptors } from './config';
|
| // const url = 'http://47.100.191.150:9031/';
| // const url = 'http://192.168.1.4:8081/';
| // const url = 'http://localhost:8081/';
| const url = 'http://114.215.109.124:8803/';
|
| //飞羽监管
| const $http = axios.create({
| baseURL: url,
| timeout: 10000
| });
|
| //添加拦截器
| setInterceptors($http);
|
| export { $http };
|
|