From 0aa2a4aec394b2f24d343f4b6a8c7d7a2d7a0d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Sun, 26 Sep 2021 14:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=B7=A8=E5=9F=9F=E4=BC=A0co?= =?UTF-8?q?okie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/fetch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/military/fetch.js b/src/military/fetch.js index d967df4b..bede3805 100644 --- a/src/military/fetch.js +++ b/src/military/fetch.js @@ -9,10 +9,13 @@ if (window.location.href.indexOf('localhost') > -1) { // actionUrl='http://192.168.31.47:8081'; }else if(window.location.href.indexOf('192.168.31.48') > -1){ actionUrl='https://taskapi.osredm.com'; + axios.defaults.withCredentials = true; }else if(window.location.href.indexOf('noticeweb.osredm') > -1){ actionUrl="https://taskapi.osredm.com"; + axios.defaults.withCredentials = true; }else if(window.location.href.indexOf('forge.osredm.com')>-1){ actionUrl="https://info.osredm.com"; + axios.defaults.withCredentials = true; } export const httpUrl = actionUrl;