From 7e8929f166388148570c46af3c7df442311e79ce Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 1 Mar 2021 10:17:38 +0800 Subject: [PATCH] appconfig --- src/AppConfig.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 9cd885eb..8434a70c 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -11,9 +11,7 @@ broadcastChannelOnmessage('refreshPage', () => { }) function locationurl(list) { - if (window.location.port === "3007") { - - } else { + if (window.location.port !== "3007") { window.location.href = list } } @@ -58,7 +56,7 @@ export function initAxiosInterceptors(props) { // TODO 避免重复的请求 https://github.com/axios/axios#cancellation var proxy = "http://localhost:3000"; - proxy = "http://osredmforge.educoder.net"; + proxy = "https://forge.osredm.com"; const requestMap = {}; window.setfalseInRequestMap = function (keyName) { @@ -92,7 +90,6 @@ export function initAxiosInterceptors(props) { } if (config.url.indexOf('update_file') === -1) { requestMap[config.url] = true; - window.setTimeout("setfalseInRequestMap('" + config.url + "')", 900) } return config;