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.

34 lines
804 B

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('120.78.127.12'); //正式服
let jumpPath = "";
let host = "";
if (isDev) {
jumpPath = "http://192.168.31.154:8087/";
// host = 'http://192.168.31.216:9000'// 榕
// host = 'http://192.168.31.125:9000'// 坤
host = 'http://192.168.31.137:9000'// 赓
3 years ago
} else if (isTest) {
jumpPath = "http://39.108.250.202/judgmentPoint/";
3 years ago
host = "http://39.108.250.202:9000";
} else if (isPro) {
jumpPath = "";
host = "";
}
const Setting = {
/**
* 基础配置
* */
jumpPath, // 跳转路径前缀
host, // 请求路径前缀
};
export default Setting;