| | |
| | | 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 url = 'http://localhost:8081/'; |
| | | // 部署 |
| | | // const url = 'http://114.215.109.124:8803/'; |
| | | // const url = 'http://192.168.1.8:8081/'; |
| | | |
| | | //飞羽监管 |
| | | const $http = axios.create({ |
| | |
| | | timeout: 10000 |
| | | }); |
| | | |
| | | //添加拦截器 |
| | | setInterceptors($http); |
| | | |
| | | export { $http }; |
| | | |
| | | /* Python后台 */ |
| | | const url_py = 'http://127.0.0.1:8089/' |
| | | const $http_py = axios.create({ |
| | | baseURL: url_py, |
| | | timeout: 10000 |
| | | }); |
| | | //添加拦截器 |
| | | setInterceptors($http,$http_py); |
| | | |
| | | export { $http,$http_py}; |