| | |
| | | // import { Message } from 'element-ui' |
| | | // import * as auth from '@/utils/auth' |
| | | |
| | | |
| | | // 调用后台管理的 |
| | | const service = axios.create({ |
| | | // baseURL: 'http://36.14.255.242:18080/api', |
| | | // baseURL: 'http://192.168.0.102:1888/api', |
| | |
| | | service.interceptors.request.use( |
| | | (config) => { |
| | | |
| | | // 调用监控平台的 |
| | | if (config.requestBaseUrl == 'outside') { |
| | | // config.baseURL = 'http://192.168.0.102:1888/api' |
| | | // config.baseURL = 'http://192.168.0.105:80/api' |
| | | config.baseURL = 'http://192.168.0.115:82' |
| | | config.baseURL = 'http://192.168.0.115:18080/api' |
| | | // config.baseURL = 'http://192.168.0.106:1888/api' |
| | | } |
| | | |