@@ -575,11 +575,12 @@ | |||
}; | |||
//替换图片地址 | |||
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 data = getItem('globalParam') |
@@ -7,7 +7,7 @@ export const URL = "testmedusa.etcjz.cn"; | |||
export const envs = { | |||
//开发环境配置 | |||
development: { | |||
baseUrl: "https://qtzl.etcjz.cn", | |||
baseUrl: "https://trial.etcjz.cn", | |||
// baseUrl: "http://192.168.100.63:8087", | |||
// baseUrl: "https://testmedusa.etcjz.cn", | |||
// baseUrl: "http://192.168.100.158:8085", | |||
@@ -17,7 +17,7 @@ export const envs = { | |||
// baseUrl: "http://192.168.100.63:8087", | |||
// baseUrl: "http://222.85.144.89:19002", | |||
// baseUrl: "http://192.168.100.158:8085/html/", | |||
baseUrl: "https://qtzl.etcjz.cn", | |||
baseUrl: "https://trial.etcjz.cn", | |||
// baseUrl: "https://testmedusa.etcjz.cn", | |||
}, | |||
} |