config.js
export const baseURL= {
base1: 'http://192.168.1.1:1111',
base2: 'http://192.168.2.1:2222',
base3: 'http://192.168.3.1:3333',
base4: 'http://192.168.4.1:4444',
base5: 'http://192.168.5.1:5555',
.....
}
service.js
import { baseURL} from '../axios/config.js'
const base1= baseURL.base1;
const base2= baseURL.base2;
export const getToken = (params) =>{
return request({
url:base1+'/xxx/getToken.do',
method:'get',
params:params
})
}