协作者

This commit is contained in:
caicai8 2020-03-25 17:08:27 +08:00
parent 538c681d34
commit 9e4254e01f
3 changed files with 2 additions and 4 deletions

View File

@ -39,7 +39,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 || ''
window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin'
}
// 超管
// debugType="admin";

View File

@ -22,7 +22,6 @@ const Collaborator = Loadable({
class Index extends Component{
render(){
const { projectsId } = this.props.match.params;
console.log(this.props);
const { pathname } = this.props.history.location;
const flag = (pathname === `/projects/${projectsId}/setting`);
@ -36,7 +35,7 @@ class Index extends Component{
<div className="main">
<Switch {...this.props}>
{/* 协作者 */}
<Route path="/projects/:projectsId/collaborator"
<Route path="/projects/:projectsId/setting/collaborator"
render={
(props) => (<Collaborator {...this.props} {...props} {...this.state}/>)
}

View File

@ -32,7 +32,6 @@ class Setting extends Component{
}
getInfo=()=>{
const { current_user } = this.props;
const { projectsId } = this.props.match.params;
const url = `/repositories/${projectsId}/edit.json`;
axios.get(url).then(result=>{