modified host

master
yujialong 3 years ago
parent eebdd7c4db
commit 8ac4b49fb2
  1. 7
      src/utils/api.js

@ -4,11 +4,14 @@ let isKd = /&host=(\d)/.exec(location.hash) //host:{1:测试环境,2:正
if(isKd){ if(isKd){
host = isKd[1] == 1 ? 'http://122.9.154.146' : 'http://116.63.168.79' host = isKd[1] == 1 ? 'http://122.9.154.146' : 'http://116.63.168.79'
}else{ }else{
let url = location.host
// 职站中台接口切换 // 职站中台接口切换
if(location.host.includes('liuwanr.cn')){ if(url.includes('liuwanr.cn')){
host = 'http://www.liuwanr.cn'// 职站测试服 host = 'http://www.liuwanr.cn'// 职站测试服
}else if(location.host.includes('occupationlab.com')){ }else if(url.includes('occupationlab.com')){
host = 'http://www.occupationlab.com'// 职站正式服 host = 'http://www.occupationlab.com'// 职站正式服
}else if(url.includes('10.196.131.73')){
host = 'http://10.196.131.73'// 河海版
}else{ }else{
host = 'http://39.108.250.202'// 中台 host = 'http://39.108.250.202'// 中台
} }

Loading…
Cancel
Save