diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 335ab80fa..70d569df8 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -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); }