appconfig

This commit is contained in:
caishi 2021-03-01 10:17:38 +08:00
parent 0a39ed80da
commit 7e8929f166
1 changed files with 2 additions and 5 deletions

View File

@ -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;