From fb1fe1e2a7d61763b0a22af7f382cc249f67e5b1 Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Fri, 7 Feb 2020 15:06:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=AE=E6=94=B9=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/forge/Main/CoderRootDirectory.js | 9 +--
.../src/forge/Main/CoderRootFileDetail.js | 58 ++++++++++++++++---
2 files changed, 53 insertions(+), 14 deletions(-)
diff --git a/public/react/src/forge/Main/CoderRootDirectory.js b/public/react/src/forge/Main/CoderRootDirectory.js
index 1f37811a7..e812d66d9 100644
--- a/public/react/src/forge/Main/CoderRootDirectory.js
+++ b/public/react/src/forge/Main/CoderRootDirectory.js
@@ -18,7 +18,6 @@ import axios from 'axios';
* filePath:点击目录时当前目录的路径
* subfileType:保存当前点击目录的文件类型(显示目录列表时才显示新建文件,如果点击的是文件就不显示新建文件按钮)
* readMeContent:根目录下面的readme文件内容
- * current_path:当前文件路径
*/
class CoderRootDirectory extends Component{
constructor(props){
@@ -30,7 +29,6 @@ class CoderRootDirectory extends Component{
http_url:undefined,
subFileType:"",
readMeContent:undefined,
- current_path:undefined,
branchList:undefined,
fileDetail:undefined,
@@ -72,8 +70,7 @@ class CoderRootDirectory extends Component{
this.renderUrl(arr.name,arr.path,arr.type);
this.getFileDetail(arr);
this.setState({
- subFileType:arr.type,
- current_path:arr.path
+ subFileType:arr.type
})
}
@@ -189,7 +186,7 @@ class CoderRootDirectory extends Component{
})
}
render(){
- const { rootList , branch ,filePath , fileDetail , subFileType , readMeContent , current_path } = this.state;
+ const { rootList , branch ,filePath , fileDetail , subFileType , readMeContent } = this.state;
const { branchLastCommit , http_url , isManager , isDeveloper } = this.props;
const { projectsId } = this.props.match.params;
@@ -287,7 +284,7 @@ class CoderRootDirectory extends Component{
{
fileDetail &&
-
@@ -66,7 +107,7 @@ class CoderRootFileDetail extends Component{
: