forked from Gitlink/forgeplus-react
403,404
This commit is contained in:
parent
25a3e10c27
commit
cb87a9d075
|
@ -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) {
|
||||
|
|
|
@ -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>向我们反馈
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue