diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 078c3132c..63c318f19 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -10,26 +10,25 @@ broadcastChannelOnmessage('refreshPage', () => { }) function locationurl(list){ - if (window.location.port === "3007") { + if (window.location.port === "3007") { - } else { + } else { - if(list===402){ - SetAppModel(402) - }else if(list===407){ + if(list===402){ + SetAppModel(402) + }else if(list===407){ - }else{ - window.location.replace(list) - } + }else{ + window.location.replace(list) + } - } + } } // TODO 开发期多个身份切换 -const debugType ="" -// window.location.search.indexOf('debug=t') != -1 ? 'teacher' : -// window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' -// window._debugType = debugType; +const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' : + window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' +window._debugType = debugType; export function initAxiosInterceptors(props) {