change branch error

This commit is contained in:
sylor_huang@126.com 2020-06-05 14:46:26 +08:00
parent 1594f4fa93
commit cc280f1597
2 changed files with 2 additions and 10 deletions

View File

@ -101,7 +101,7 @@ class CoderRootDirectory extends Component {
axios
.get(url, {
params: {
branch,
ref: branch,
},
})
.then((result) => {

View File

@ -53,13 +53,8 @@ class UserSubmitComponent extends Component {
let url = values.branchname
? `/projects/${projectsId}/coders?branch=${values.branchname}`
: `/projects/${projectsId}/coders`;
if(result.data.pr_id){
url = `/projects/${projectsId}/merge/${result.data.pr_id}/Messagecount`
}
// const url = values.branchname
// ? `/projects/${projectsId}/coders?branch=${values.branchname}`
// : `/projects/${projectsId}/coders`;
this.props.history.push(url);
this.props.showNotification("文件新建成功!");
}
})
.catch((error) => {
@ -96,9 +91,6 @@ class UserSubmitComponent extends Component {
let url = values.branchname
? `/projects/${projectsId}/coders?branch=${values.branchname}`
: `/projects/${projectsId}/coders`;
if(result.data.pr_id){
url = `/projects/${projectsId}/merge/${result.data.pr_id}/Messagecount`
}
this.props.history.push(url);
this.props.showNotification("修改成功!");