diff --git a/src/AppConfig.js b/src/AppConfig.js index faef3bd2..3216f00f 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -25,7 +25,7 @@ if (isDev) { } 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' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/modules/403/Shixunauthority.js b/src/modules/403/Shixunauthority.js index 00509cb8..99b8c4a2 100644 --- a/src/modules/403/Shixunauthority.js +++ b/src/modules/403/Shixunauthority.js @@ -4,7 +4,7 @@ import { SnackbarHOC, getImageUrl } from 'educoder'; class Shixunauthority extends Component { render() { - const { current_user } = this.props; + const { current_user , mygetHelmetapi } = this.props; return (
您尚未被授权访问此页面,请先获取相关权限
您可尝试 {(!current_user || !current_user.login) && ( -您可尝试登录或
+您可尝试登录或
)} - 返回首页,也可以通过 + 返回首页,也可以通过 QQ向我们反馈 diff --git a/src/modules/404/Shixunnopage.js b/src/modules/404/Shixunnopage.js index 47aa850c..a7e24a2d 100644 --- a/src/modules/404/Shixunnopage.js +++ b/src/modules/404/Shixunnopage.js @@ -4,7 +4,7 @@ import { SnackbarHOC, getImageUrl } from 'educoder'; class http500 extends Component { render() { - const { current_user } = this.props; + const { current_user , mygetHelmetapi } = this.props; return (