|
|
|
@ -9,46 +9,39 @@ const isBeta = url.includes("120.78.198.231"); //是否职站测试 |
|
|
|
|
const isPro = url.includes("occupationlab.com"); //是否职站生产
|
|
|
|
|
const isTest = url.includes('39.108.250.202'); //是否中台测试服
|
|
|
|
|
|
|
|
|
|
let defaultSubSystem = ""; |
|
|
|
|
let systemPath = ""; |
|
|
|
|
let systemPath = '' |
|
|
|
|
let host = ""; |
|
|
|
|
let title = ""; |
|
|
|
|
|
|
|
|
|
if (isHh) { |
|
|
|
|
// 河海
|
|
|
|
|
host = "http://10.196.131.73/"; |
|
|
|
|
defaultSubSystem = "http://10.196.131.73/pyTrials/#/"; |
|
|
|
|
title = "学生端"; |
|
|
|
|
} else if (isCH) { |
|
|
|
|
// 巢湖
|
|
|
|
|
host = "http://124.71.12.62/"; |
|
|
|
|
defaultSubSystem = "http://124.71.12.62/pyTrials/#/"; |
|
|
|
|
title = "学生端"; |
|
|
|
|
} else if (isBeta) { |
|
|
|
|
// 职站测试
|
|
|
|
|
host = "http://120.78.198.231/"; |
|
|
|
|
defaultSubSystem = "http://120.78.198.231/pyTrials/#/"; |
|
|
|
|
title = "职站"; |
|
|
|
|
} else if (isPro) { |
|
|
|
|
// 职站生产
|
|
|
|
|
host = "http://www.occupationlab.com:9000/"; |
|
|
|
|
defaultSubSystem = "http://www.occupationlab.com/pyTrials/#/"; |
|
|
|
|
systemPath = `http://www.huorantech.cn/banksystem` |
|
|
|
|
title = "职站"; |
|
|
|
|
} else if (isTest){ |
|
|
|
|
// 中台测试
|
|
|
|
|
host = "http://39.108.250.202:9000/"; |
|
|
|
|
systemPath = "http://120.78.198.231/"; |
|
|
|
|
defaultSubSystem = "http://39.108.250.202/pyTrials/#/"; |
|
|
|
|
systemPath = `${systemPath}/banksystem` |
|
|
|
|
title = "职站"; |
|
|
|
|
} else if (isDev) { |
|
|
|
|
// 本地
|
|
|
|
|
// host = "http://www.occupationlab.com:9000/";//线上
|
|
|
|
|
host = "http://39.108.250.202:9000/"; // 中台测试服
|
|
|
|
|
systemPath = `http://192.168.31.125:8093` |
|
|
|
|
// host = "http://192.168.31.137:9000/"; // 赓
|
|
|
|
|
// host = "http://192.168.31.151:9000/"; // 榕
|
|
|
|
|
// host = "http://192.168.31.125:9000/"; // 坤
|
|
|
|
|
systemPath = "http://192.168.31.154/"; |
|
|
|
|
defaultSubSystem = "http://39.108.250.202/pyTrials/#/"; |
|
|
|
|
title = "职站"; |
|
|
|
|
} else { |
|
|
|
|
console.log("其它版本"); |
|
|
|
@ -64,7 +57,6 @@ const Setting = { |
|
|
|
|
showProgressBar: true, // 页面切换时,是否显示模拟的进度条
|
|
|
|
|
apiBaseURL: host, // 接口请求地址
|
|
|
|
|
systemPath, // 子系统地址前缀
|
|
|
|
|
defaultSubSystem, // 测评做完后跳转的默认子系统
|
|
|
|
|
autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间
|
|
|
|
|
modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒
|
|
|
|
|
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
|
|
|
|
|