|
|
@ -70,17 +70,20 @@ class CoderRootDirectory extends Component{
|
|
|
|
branch
|
|
|
|
branch
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((result)=>{
|
|
|
|
}).then((result)=>{
|
|
|
|
if(result && result.data && result.data.length > 0){
|
|
|
|
if(result){
|
|
|
|
this.setState({
|
|
|
|
if(result && result.data && result.data.length > 0){
|
|
|
|
filePath:[],
|
|
|
|
this.setState({
|
|
|
|
fileDetail:undefined,
|
|
|
|
filePath:[],
|
|
|
|
isSpin: false
|
|
|
|
fileDetail:undefined,
|
|
|
|
})
|
|
|
|
isSpin: false
|
|
|
|
this.renderData(result.data);
|
|
|
|
})
|
|
|
|
|
|
|
|
this.renderData(result.data);
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
rootData:result.data
|
|
|
|
rootData:result.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error)=>{})
|
|
|
|
}).catch((error)=>{})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -206,7 +209,7 @@ class CoderRootDirectory extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
const { rootList , branch ,filePath , fileDetail , subFileType , readMeContent, isSpin , rootData } = this.state;
|
|
|
|
const { rootList , branch ,filePath , fileDetail , subFileType , readMeContent, isSpin , rootData } = this.state;
|
|
|
|
|
|
|
|
console.log("ddd",rootData);
|
|
|
|
const { branchLastCommit , http_url , isManager , isDeveloper } = this.props;
|
|
|
|
const { branchLastCommit , http_url , isManager , isDeveloper } = this.props;
|
|
|
|
const { projectsId } = this.props.match.params;
|
|
|
|
const { projectsId } = this.props.match.params;
|
|
|
|
|
|
|
|
|
|
|
|