@@ -588,7 +588,11 @@ | |||
//替换图片地址 | |||
const strReplace = (str : string) => { | |||
return str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
console.log(str) | |||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||
console.log(imgUrl) | |||
return imgUrl; | |||
} | |||
</script> | |||
@@ -518,7 +518,9 @@ | |||
//替换图片地址 | |||
const strReplace = (str : string) => { | |||
return str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||
return imgUrl; | |||
}; | |||
const getGlobalParam=()=>{ | |||
const data=getItem('globalParam') |
@@ -575,11 +575,9 @@ | |||
}; | |||
//替换图片地址 | |||
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) | |||
} | |||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
imgUrl = str.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||
return imgUrl; | |||
} | |||
const getGlobalParam = () => { | |||
const data = getItem('globalParam') | |||
@@ -620,7 +618,7 @@ | |||
} else { | |||
state.isEnableOCRData = true; | |||
} | |||
} | |||
// 通过opneId查询用户信息 | |||
const queryUserMsg = () => { |
@@ -386,8 +386,9 @@ import { | |||
//替换图片地址 | |||
const strReplace = (str: string) => { | |||
// return str.replace('192.168.101.145:9000', '222.85.144.89:19002') | |||
return str.replace('http://192.168.101.145:9000', envs[process.env.NODE_ENV].baseUrl) | |||
let imgUrl = str.replace("http://192.168.101.145:9000", envs[process.env.NODE_ENV].baseUrl); | |||
imgUrl = imgUrl.replace("http://100.64.2.113:9000", envs[process.env.NODE_ENV].baseUrl); | |||
return imgUrl; | |||
} | |||
</script> | |||