|
|
@ -20,16 +20,16 @@ function locationurl(list){
|
|
|
|
|
|
|
|
|
|
|
|
// TODO 开发期多个身份切换
|
|
|
|
// TODO 开发期多个身份切换
|
|
|
|
let debugType =""
|
|
|
|
let debugType =""
|
|
|
|
if (isDev) {
|
|
|
|
// if (isDev) {
|
|
|
|
const _search = window.location.search;
|
|
|
|
// const _search = window.location.search;
|
|
|
|
let parsed = {};
|
|
|
|
// let parsed = {};
|
|
|
|
if (_search) {
|
|
|
|
// if (_search) {
|
|
|
|
parsed = queryString.parse(_search);
|
|
|
|
// parsed = queryString.parse(_search);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
|
|
|
|
// debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
|
|
|
|
window.location.search.indexOf('debug=s') != -1 ? 'student' :
|
|
|
|
// window.location.search.indexOf('debug=s') != -1 ? 'student' :
|
|
|
|
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
|
|
|
|
// window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
window._debugType = debugType;
|
|
|
|
window._debugType = debugType;
|
|
|
|
export function initAxiosInterceptors(props) {
|
|
|
|
export function initAxiosInterceptors(props) {
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ export function initAxiosInterceptors(props) {
|
|
|
|
// proxy = "http://testbdweb.trustie.net"
|
|
|
|
// proxy = "http://testbdweb.trustie.net"
|
|
|
|
// proxy = "http://testbdweb.educoder.net"
|
|
|
|
// proxy = "http://testbdweb.educoder.net"
|
|
|
|
// proxy = "https://testeduplus2.educoder.net"
|
|
|
|
// proxy = "https://testeduplus2.educoder.net"
|
|
|
|
proxy="http://47.96.87.25:48080"
|
|
|
|
proxy="http://47.96.87.25:48080/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求;
|
|
|
|
// 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求;
|
|
|
|