dev_forum
杨树林 6 years ago
parent fc8614a33a
commit 724da87ba2

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

Loading…
Cancel
Save