|
|
|
@ -19,21 +19,11 @@ class CoderRootCommit extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount=()=>{
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
let { search } = this.props.history.location;
|
|
|
|
|
let branchName = undefined;
|
|
|
|
|
if(search && search.indexOf("branch")>-1){
|
|
|
|
|
branchName = search.split("=")[1];
|
|
|
|
|
console.log(branchName);
|
|
|
|
|
this.setState({
|
|
|
|
|
branch:branchName
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const { branch , page , limit } = this.state;
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|
this.getCommitList( branchName || branch , page , limit );
|
|
|
|
|
this.getCommitList( branch , page , limit );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getCommitList=(branch , page , limit)=>{
|
|
|
|
|