From 9e4254e01f8aeb39ce9b9e3250d386b14d9e72c1 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Wed, 25 Mar 2020 17:08:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=8D=8F=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/Settings/Index.js | 3 +-- src/forge/Settings/Setting.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 406f6022..9388b124 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -39,7 +39,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : window.location.search.indexOf('debug=s') != -1 ? 'student' : - window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || '' + window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' } // 超管 // debugType="admin"; diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index a19b296e..7c20adee 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -22,7 +22,6 @@ const Collaborator = Loadable({ class Index extends Component{ render(){ const { projectsId } = this.props.match.params; - console.log(this.props); const { pathname } = this.props.history.location; const flag = (pathname === `/projects/${projectsId}/setting`); @@ -36,7 +35,7 @@ class Index extends Component{
+
新建文件 - 上传文件 + {/* 上传文件 */}
} { 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,