This commit is contained in:
caishi 2022-03-29 09:47:38 +08:00
parent 25a3e10c27
commit cb87a9d075
3 changed files with 7 additions and 9 deletions

View File

@ -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) {

View File

@ -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 (
<div className="newMain newTable clearfix">
<div className="edu-txt-center mt60 mb60">
@ -14,10 +14,9 @@ class Shixunauthority extends Component {
<p>您尚未被授权访问此页面请先获取相关权限</p>
您可尝试
{(!current_user || !current_user.login) && (
<p style={{display:"inline"}}>您可尝试<a href="//testforgeplus.trustie.net/login" className="color-blue">登录</a></p>
<p style={{display:"inline"}}>您可尝试<a href={`${mygetHelmetapi && mygetHelmetapi.common && mygetHelmetapi.common.main_site_url}/login`} className="color-blue">登录</a></p>
)}
<a href="/"
className="color-blue">返回首页</a>
<a href="/" className="color-blue">返回首页</a>
<a target="_blank"
href="https://qm.qq.com/cgi-bin/qm/qr?k=YVGUhY7uK8ovpyd7tG_lHe2qGZ63LOij&jump_from=webapi"
className="color-blue">QQ</a>

View File

@ -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 (
<div className="newMain newTable clearfix">
<div className=" edu-txt-center mt60">
@ -14,10 +14,9 @@ class http500 extends Component {
<p>你访问的页面不存在</p>
您可尝试
{(!current_user || !current_user.login) && (
<p style={{display:"inline"}}>您可尝试<a href="//testforgeplus.trustie.net/login" className="color-blue">登录</a></p>
<p style={{display:"inline"}}>您可尝试<a href={`${mygetHelmetapi && mygetHelmetapi.common && mygetHelmetapi.common.main_site_url}/login`} className="color-blue">登录</a></p>
)}
<a href="/"
className="color-blue">返回首页</a>
<a href="/" className="color-blue">返回首页</a>
也可通过
<a target="_blank"
href="https://qm.qq.com/cgi-bin/qm/qr?k=YVGUhY7uK8ovpyd7tG_lHe2qGZ63LOij&jump_from=webapi"