From fccabebc593704bf36e1906036b911a761c3cb73 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 3 Jul 2020 17:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=86=E6=94=AF=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderRootIndex.js | 2 +- src/forge/Newfile/UserSubmitComponent.js | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js index 3b3e7d28d..bb3fdb07f 100644 --- a/src/forge/Main/CoderRootIndex.js +++ b/src/forge/Main/CoderRootIndex.js @@ -94,7 +94,7 @@ class CoderRootIndex extends Component{ > () + (props) => () } > { this.setState({ isSpin: false }); if (result.data && result.data.name) { - let url = values.branchname - ? `/projects/${projectsId}/coders?branch=${values.branchname}` - : `/projects/${projectsId}/coders`; - this.props.history.push(url); this.props.showNotification("文件新建成功!"); if(submitType === "1"){ const { getTopCount } = this.props; getTopCount && getTopCount(values.branchname); } + let url = values.branchname + ? `/projects/${projectsId}/coders?branch=${values.branchname}` + : `/projects/${projectsId}/coders`; + this.props.history.push(url); } }) .catch((error) => { @@ -175,12 +175,6 @@ class UserSubmitComponent extends Component { {getFieldDecorator("path", { rules: [], })( - //