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