pull/6/head
xiaozhiyong 11 months ago
parent aabf040620
commit 51494be14f
  1. 10
      utils/request.js

@ -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,

Loading…
Cancel
Save