forked from Gitlink/forgeplus-react
console
This commit is contained in:
parent
460a258213
commit
f019d2da69
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue