This commit is contained in:
caishi 2020-12-21 17:59:40 +08:00
parent 5c91569bac
commit fac62fc99e
2 changed files with 2 additions and 5 deletions

View File

@ -59,7 +59,7 @@ class UserSubmitComponent extends Component {
}
})
.catch((error) => {
this.setState({ isSpin: false });
this.setState({ isSpin : false });
console.log(error);
});
} else {
@ -89,7 +89,6 @@ class UserSubmitComponent extends Component {
.then((result) => {
this.setState({ isSpin: false });
if (result.data && result.data.status === 1) {
debugger;
let url = `/projects/${owner}/${projectsId}${(values.branchname ? `/branch/${values.branchname}` : ((currentBranch || branch) ? `/branch/${currentBranch || branch}`:""))}`;
this.props.history.push(url);
this.props.showNotification("文件修改成功!");
@ -175,8 +174,7 @@ class UserSubmitComponent extends Component {
</Radio>
<Radio value="1">
<Icon type="pull-request" className="mr5" />
为此提交创建一个<span className="font-bd">新的分支</span>
并发起合并请求
为此提交创建一个<span className="font-bd">新的分支</span>
</Radio>
</Radio.Group>
{

View File

@ -53,7 +53,6 @@ class UploadFile extends Component {
{...this.props}
/>
</div>
<div>
<UserSubmitComponent
{...this.props}