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;