|
|
|
@ -1,12 +1,12 @@ |
|
|
|
|
import axios from 'axios' |
|
|
|
|
import utils from '@/utils/encode' |
|
|
|
|
// const env = process.env.NODE_ENV
|
|
|
|
|
const env = 'test' |
|
|
|
|
// const env = 'production'
|
|
|
|
|
const testUrl = 'http://192.168.1.83:38080' |
|
|
|
|
const productUrl = 'https://www.xingoil.com/adminapi' |
|
|
|
|
// const env = 'test'
|
|
|
|
|
const env = 'production' |
|
|
|
|
const testUrl = 'http://192.168.1.132:38080' |
|
|
|
|
// const productUrl = 'https://www.xingoil.com/adminapi'
|
|
|
|
|
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
|
|
|
|
// const productUrl = 'http://uat.xingoil.com/adminapi'
|
|
|
|
|
const productUrl = 'http://uat.xingoil.com/adminapi' |
|
|
|
|
|
|
|
|
|
const service = axios.create({ |
|
|
|
|
baseURL: env == 'production' ? productUrl : testUrl, |
|
|
|
|