diff --git a/src/AppConfig.js b/src/AppConfig.js index 36c1529d..73f3a38e 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 || 'student' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/forge/Notice/Notify.jsx b/src/forge/Notice/Notify.jsx index 31373908..296da8f1 100644 --- a/src/forge/Notice/Notify.jsx +++ b/src/forge/Notice/Notify.jsx @@ -71,6 +71,20 @@ function Notify(props){ } } + function renderApplyStatus(status,applied) { + let { project } = applied; + if(status){ + switch(status){ + case 'successed': + return

已通过你加入【{project && project.name}】项目的申请

+ default: + return

已拒绝你加入【{project && project.name}】项目的申请

+ } + }else{ + return "" + } + } + return(
diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js index cd33bf13..c240148c 100644 --- a/src/forge/users/Infos.js +++ b/src/forge/users/Infos.js @@ -123,8 +123,6 @@ class Infos extends Component { }); const { current_user } = this.props; const { username } = this.props.match.params; - const { pathname } = this.props.location; - const { notice } = this.state; let url = `/users/${username || (current_user && current_user.login)}.json`; axios.get(url).then((result) => {