}; | }; | ||||
//替换图片地址 | //替换图片地址 | ||||
const strReplace = (str : string) => { | const strReplace = (str : string) => { | ||||
if (envs[process.env.NODE_ENV].baseUrl == "http://192.168.100.63:8087") { | |||||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
} else { | |||||
return str.replace('http://100.64.2.113:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
} | |||||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// if (envs[process.env.NODE_ENV].baseUrl == "https://trial.etcjz.cn") { | |||||
// return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// } else { | |||||
// return str.replace('http://100.64.2.113:9000', envs[process.env.NODE_ENV].baseUrl) | |||||
// } | |||||
} | } | ||||
const getGlobalParam = () => { | const getGlobalParam = () => { | ||||
const data = getItem('globalParam') | const data = getItem('globalParam') |
export const envs = { | export const envs = { | ||||
//开发环境配置 | //开发环境配置 | ||||
development: { | development: { | ||||
baseUrl: "https://qtzl.etcjz.cn", | |||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.63:8087", | // baseUrl: "http://192.168.100.63:8087", | ||||
// baseUrl: "https://testmedusa.etcjz.cn", | // baseUrl: "https://testmedusa.etcjz.cn", | ||||
// baseUrl: "http://192.168.100.158:8085", | // baseUrl: "http://192.168.100.158:8085", | ||||
// baseUrl: "http://192.168.100.63:8087", | // baseUrl: "http://192.168.100.63:8087", | ||||
// baseUrl: "http://222.85.144.89:19002", | // baseUrl: "http://222.85.144.89:19002", | ||||
// baseUrl: "http://192.168.100.158:8085/html/", | // baseUrl: "http://192.168.100.158:8085/html/", | ||||
baseUrl: "https://qtzl.etcjz.cn", | |||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "https://testmedusa.etcjz.cn", | // baseUrl: "https://testmedusa.etcjz.cn", | ||||
}, | }, | ||||
} | } |