diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 81dd855ea..467520507 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -18,10 +18,10 @@ function locationurl(list){ } // TODO 开发期多个身份切换 -const debugType =""; -// const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' : -// window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' -// window._debugType = debugType; +// const debugType =""; +const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' : + window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' +window._debugType = debugType; export function initAxiosInterceptors(props) { // TODO 避免重复的请求 https://github.com/axios/axios#cancellation diff --git a/public/react/src/modules/courses/coursesPublic/Addcourses.js b/public/react/src/modules/courses/coursesPublic/Addcourses.js index 39f2ac061..ab0a9eb56 100644 --- a/public/react/src/modules/courses/coursesPublic/Addcourses.js +++ b/public/react/src/modules/courses/coursesPublic/Addcourses.js @@ -62,7 +62,7 @@ class Addcourses extends Component{ inputjoinclassvalue=(e)=>{ if(e.target.value.length>=7){ - this.openNotification("只能输入小于7位数的邀请码!"); + this.openNotification("请输入5位课堂邀请码或6位分班邀请码!"); return } this.setState({ diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js index c6820d68f..7629eeef2 100644 --- a/public/react/src/modules/login/LoginDialog.js +++ b/public/react/src/modules/login/LoginDialog.js @@ -416,7 +416,7 @@ class LoginDialog extends Component { -
请输入5位项目邀请码或6位分班邀请码
+ style={{marginLeft: '90px',display:code_notice===true?'block':"none"}}>请输入6位项目邀请码