From 7a8b028aeb583ee2e61684ba626fba8c519192c0 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Wed, 25 Mar 2020 17:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=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 | 4 ++-- src/forge/Main/list.css | 4 ++-- src/forge/Newfile/UserSubmitComponent.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index ed1114a3..71adf125 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -294,9 +294,9 @@ class CoderRootDirectory extends Component{
{ subFileType !== "file" && (isManager || isDeveloper) && -

+

新建文件 - 上传文件 + {/* 上传文件 */}

} { diff --git a/src/forge/Main/list.css b/src/forge/Main/list.css index 1fc86cb8..60bfcd37 100644 --- a/src/forge/Main/list.css +++ b/src/forge/Main/list.css @@ -442,10 +442,10 @@ body,#root{ padding: 0px 10px; } .addFile a:first-child{ - border-radius: 4px 0px 0px 4px; + border-radius: 4px; } .addFile a:last-child{ - border-radius: 0px 4px 4px 0px; + /* border-radius: 0px 4px 4px 0px; */ border-left: 1px solid rgba(247, 247, 247, 0.3); } .addFile a:active{ diff --git a/src/forge/Newfile/UserSubmitComponent.js b/src/forge/Newfile/UserSubmitComponent.js index d4ccd2f3..fe138f3f 100644 --- a/src/forge/Newfile/UserSubmitComponent.js +++ b/src/forge/Newfile/UserSubmitComponent.js @@ -22,13 +22,13 @@ class UserSubmitComponent extends Component{ // 提交变更 subMitFrom=()=>{ - const { current_user , filepath , content } = this.props; + const { filepath , content } = this.props; const { branch , projectsId } = this.props.match.params; const { submitType } = this.state; let path = filepath.substr(1); this.props.form.validateFieldsAndScroll((err, values) => { if(!err){ - const url = `/${current_user && current_user.login}/${projectsId}/contents.json`; + const url = `/repositories/${projectsId}/create_file.json`; axios.post(url,{ filepath:path, branch:submitType==="0" ? branch : undefined,