修改调用路径

This commit is contained in:
何童崇 2021-09-16 16:57:53 +08:00
parent 0ff1367ad8
commit 4cf8357463
1 changed files with 4 additions and 4 deletions

View File

@ -6,13 +6,13 @@ import cookie from 'react-cookies';
let actionUrl = '';
if (window.location.href.indexOf('localhost') > -1) {
// actionUrl='http://117.50.100.12:8008';
// actionUrl='https://taskapi.osredm.com';
actionUrl='http://192.168.31.47:8081';
}else if(window.location.href.indexOf('117.50.100.12') > -1){
actionUrl="http://117.50.100.12:8008";
}else if(window.location.href.indexOf('192.168.31.48') > -1){
actionUrl="http://117.50.100.12:8008";
}else if(window.location.href.indexOf('osredm')>-1){
}else if(window.location.href.indexOf('noticeweb.osredm') > -1){
actionUrl="https://taskapi.osredm.com";
}else if(window.location.href.indexOf('https://osredm.com')>-1){
actionUrl="https://info.osredm.com";
}
export const httpUrl=actionUrl;