diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index 35fe5086..aeecf7eb 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -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 (