|
|
@ -1,15 +1,15 @@ |
|
|
|
import axios from 'axios' |
|
|
|
import axios from 'axios' |
|
|
|
import utils from '@/utils/encode' |
|
|
|
import utils from '@/utils/encode' |
|
|
|
// const env = process.env.NODE_ENV
|
|
|
|
// const env = process.env.NODE_ENV
|
|
|
|
const env = 'production'/* */ |
|
|
|
// const env = 'production'/* */
|
|
|
|
// const env = 'test'
|
|
|
|
// const env = 'test'
|
|
|
|
// const env = 'production'
|
|
|
|
const env = 'production' |
|
|
|
// 45
|
|
|
|
// 45
|
|
|
|
const testUrl = 'http://192.168.0.45:38080' |
|
|
|
const testUrl = 'http://192.168.0.54:38080' |
|
|
|
// const productUrl = 'https://www.xingoil.com/adminapi'
|
|
|
|
// const productUrl = 'https://www.xingoil.com/adminapi'
|
|
|
|
|
|
|
|
|
|
|
|
const productUrl = 'http://uat.xingoil.com/adminapi' |
|
|
|
const productUrl = 'http://uat.xingoil.com/adminapi' |
|
|
|
// const productUrl = 'http://192.168.0.191:38080'
|
|
|
|
// const productUrl = 'http://192.168.0.191:38080'
|
|
|
|
// const productUrl = 'http://121.196.213.68/adminapi'
|
|
|
|
// const productUrl = 'http://121.196.213.68/adminapi'
|
|
|
|
const service = axios.create({ |
|
|
|
const service = axios.create({ |
|
|
|
baseURL: env == 'production' ? productUrl : testUrl,
|
|
|
|
baseURL: env == 'production' ? productUrl : testUrl,
|
|
|
|