|
|
|
@ -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) {
|
|
|
|
|
|
|
|
|
|