dev_forum
杨树林 5 years ago
parent 23dd85b8f6
commit b1c99ec75e

@ -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,7 +146,10 @@ export function initAxiosInterceptors(props) {
}
if (response.data.status === 402) {
locationurl(response.data.url);
console.log(response.data.status);
console.log(response.data.url);
locationurl(response.data.url);
}

Loading…
Cancel
Save