This commit is contained in:
caishi 2020-09-09 14:20:27 +08:00
parent 460a258213
commit f019d2da69
1 changed files with 2 additions and 9 deletions

View File

@ -163,17 +163,12 @@ class CoderRootDirectory extends Component {
path: str.substr(1),
type:
filePath && filePath.length > 0
? filePath[k]
? filePath[k].type
: type
: type,
? filePath[k] ? filePath[k].type : type : type,
});
});
const { projectsId , owner } = this.props.match.params;
//点击直接跳转页面 加载一次路由
this.props.history.push(
`/projects/${owner}/${projectsId}?url=${str.substr(1)}`
);
this.props.history.push(`/projects/${owner}/${projectsId}?url=${str.substr(1)}`);
} else {
list.push({
index: 0,
@ -221,7 +216,6 @@ class CoderRootDirectory extends Component {
this.renderData(entries);
}
}else{
console.log("均为undefined");
this.setState({
fileDetail:undefined,
rootList:undefined,
@ -374,7 +368,6 @@ class CoderRootDirectory extends Component {
}
title = (branchLastCommit,lastCommitAuthor) => {
console.log(branchLastCommit)
if (branchLastCommit) {
return (
<div className="f-wrap-alignCenter">