From 4cf83574634d1cf7652b369618a2e6ed4a57c9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Thu, 16 Sep 2021 16:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B0=83=E7=94=A8=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/fetch.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/military/fetch.js b/src/military/fetch.js index beee8a54..50b3d2a3 100644 --- a/src/military/fetch.js +++ b/src/military/fetch.js @@ -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;