You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

3 years ago
/**
* 业务配置
* */
const url = location.host;
const isDev = process.env.NODE_ENV === 'development'; // 开发环境
const isTest = url.includes('39.108.250.202'); //测试服
3 years ago
const isPro = url.includes('www.huorantech.cn'); //正式服
3 years ago
let jumpPath = "";
let host = "";
if (isDev) {
// jumpPath = "http://www.huorantech.cn/judgmentPoint/";
3 years ago
jumpPath = "http://39.108.250.202/judgmentPoint/";
// jumpPath = "http://192.168.31.254:8087/"; // 本地调试-需要启动本地判分点系统
// host = "http://www.huorantech.cn:9000";//线上
3 years ago
host = "http://39.108.250.202:9000";//测试
3 years ago
// host = 'http://192.168.31.151:9000'// 榕
// host = 'http://192.168.31.125:9000'// 坤
3 years ago
// host = 'http://192.168.31.137:9000'// 赓
3 years ago
} else if (isTest) {
3 years ago
// jumpPath = "http://124.71.12.62/judgmentPoint/";
jumpPath = "http://39.108.250.202/judgmentPoint/";
3 years ago
host = "http://39.108.250.202:9000";
3 years ago
// host = "http://124.71.12.62:9000";//线上
3 years ago
} else if (isPro) {
3 years ago
// jumpPath = "http://124.71.12.62/judgmentPoint/";
// host = "http://124.71.12.62:9000";//线上
jumpPath = "http://www.huorantech.cn/judgmentPoint/";
host = "http://www.huorantech.cn:9000";//线上
3 years ago
}
const Setting = {
/**
* 基础配置
* */
3 years ago
platformId: 3, // 平台标识,1职站,2数据平台,3中台
jumpPath, // 判分点系统跳转路径前缀
3 years ago
host, // 请求路径前缀
};
export default Setting;