|
|
|
@ -8,11 +8,11 @@ const dev = process.env.NODE_ENV === 'development' // 开发环境 |
|
|
|
|
let host = `${location.origin}/` |
|
|
|
|
if (dev) { |
|
|
|
|
// 本地
|
|
|
|
|
host = 'http://121.37.12.51/' // 中台测试服
|
|
|
|
|
host = 'http://118.31.167.228/' // 中台测试服
|
|
|
|
|
// host = 'https://www.occupationlab.com/' // 正式服
|
|
|
|
|
// host = 'http://192.168.31.51:9000/'
|
|
|
|
|
const ip = localStorage.getItem('localIp') |
|
|
|
|
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://121.37.12.51/'] |
|
|
|
|
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://118.31.167.228/'] |
|
|
|
|
host = ips[+ip] |
|
|
|
|
} |
|
|
|
|
// 创建axios实例
|
|
|
|
|