diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b746d2e2..fcfb947b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,8 +3,8 @@
-
-
+
+
@@ -15,24 +15,24 @@
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
@@ -58,11 +58,13 @@
textcount
forks
commentCtx
+ 上传文件
+ subFileType
$PROJECT_DIR$/src/forge
- $PROJECT_DIR$/src
$PROJECT_DIR$
+ $PROJECT_DIR$/src
@@ -81,13 +83,14 @@
-
+
+
@@ -128,7 +131,7 @@
-
+
@@ -170,12 +173,12 @@
1584692398144
-
+
-
+
@@ -194,7 +197,7 @@
-
+
@@ -255,16 +258,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -293,13 +286,6 @@
-
-
-
-
-
-
-
@@ -349,16 +335,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -453,23 +429,12 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
@@ -484,15 +449,80 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js
index 095674a3..ed1114a3 100644
--- a/src/forge/Main/CoderRootDirectory.js
+++ b/src/forge/Main/CoderRootDirectory.js
@@ -293,7 +293,7 @@ class CoderRootDirectory extends Component{
{
- subFileType !== "file" && isManager && isDeveloper &&
+ subFileType !== "file" && (isManager || isDeveloper) &&
新建文件
上传文件
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index bf53fe72..b3b68077 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -296,7 +296,7 @@ class Detail extends Component{
const urlArr= url.split("/");
const urlFlag = (urlArr.length === 3);
- const { isManager } = this.props;
+ const { isManager } = this.state;
const { projectsId } = this.props.match.params;
const { state } = this.props.history.location;