新版学院统计调整

chromesetting
杨树林 5 years ago
parent e47eda0150
commit a0af31b245

@ -19,25 +19,25 @@ function locationurl(list){
let hashTimeout
// TODO 开发期多个身份切换
// let debugType =""
// if (isDev) {
// const _search = window.location.search;
// let parsed = {};
// if (_search) {
// parsed = queryString.parse(_search);
// }
// debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
// window.location.search.indexOf('debug=s') != -1 ? 'student' :
// window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
// }
// // 超管
// // debugType="admin";
// // 老师
// //ebugType="teacher";
// // 学生
// // debugType="student";
//
// window._debugType = debugType;
let debugType =""
if (isDev) {
const _search = window.location.search;
let parsed = {};
if (_search) {
parsed = queryString.parse(_search);
}
debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
window.location.search.indexOf('debug=s') != -1 ? 'student' :
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
}
// 超管
// debugType="admin";
// 老师
//ebugType="teacher";
// 学生
// debugType="student";
window._debugType = debugType;
export function initAxiosInterceptors(props) {
initOnlineOfflineListener()

Loading…
Cancel
Save