|
|
|
@ -21,6 +21,7 @@ function locationurl(list){
|
|
|
|
|
const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
|
|
|
|
|
window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin'
|
|
|
|
|
window._debugType = debugType;
|
|
|
|
|
// const debugType ="";
|
|
|
|
|
export function initAxiosInterceptors(props) {
|
|
|
|
|
|
|
|
|
|
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation
|
|
|
|
@ -145,6 +146,9 @@ export function initAxiosInterceptors(props) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (response.data.status === 402) {
|
|
|
|
|
console.log(response.data.status);
|
|
|
|
|
console.log(response.data.url);
|
|
|
|
|
|
|
|
|
|
locationurl(response.data.url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|