diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js
index 9b349938e..b6ca0be67 100644
--- a/src/forge/Main/CoderRootCommit.js
+++ b/src/forge/Main/CoderRootCommit.js
@@ -9,6 +9,12 @@ import Nodata from '../Nodata';
import axios from 'axios';
import {Link} from "react-router-dom";
+function returnbar(str){
+ if(str && str.length>0 && str.indexOf("%2F")>-1){
+ return str.replaceAll('%2F','/');
+ }
+ return str;
+}
class CoderRootCommit extends Component{
constructor(props){
super(props)
@@ -57,11 +63,12 @@ class CoderRootCommit extends Component{
this.setState({
isSpining:true
})
+ console.log(returnbar(branch));
const { projectsId , owner } = this.props.match.params;
const url = `/${owner}/${projectsId}/commits.json`;
axios.get(url,{
params:{
- sha:branch,
+ sha:returnbar(branch),
page,
limit
}
@@ -106,7 +113,7 @@ class CoderRootCommit extends Component{
const { commitDatas , dataCount , limit , page , isSpining , branchList } = this.state;
const { projectDetail, commit_class , defaultBranch } = this.props;
const { projectsId , owner , branchName } = this.props.match.params;
- let branch = branchName || defaultBranch;
+ let branch = returnbar(branchName || defaultBranch);
return(
diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js
index ceff9d9f2..84ab94d3f 100644
--- a/src/forge/Main/CoderRootIndex.js
+++ b/src/forge/Main/CoderRootIndex.js
@@ -102,6 +102,11 @@ class CoderRootIndex extends Component{
(props) => ()
}
>
+ ()
+ }
+ >
()
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index f7820f10b..f6dc83e08 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -442,7 +442,7 @@ class Detail extends Component {
{project.author.name}
}
/
- {project && project.name}
+ {projectDetail && projectDetail.name}
{ projectDetail && projectDetail.private && 私有}
diff --git a/src/forge/Merge/MergeItem.js b/src/forge/Merge/MergeItem.js
index 5c08a61f4..32f3f8114 100644
--- a/src/forge/Merge/MergeItem.js
+++ b/src/forge/Merge/MergeItem.js
@@ -183,7 +183,7 @@ class MergeItem extends Component {
) : (
""
)}
- {user_admin_or_member ? (
+ {user_admin_or_member && item.pull_request_status === 0 ? (
{
const { project } = this.props;
+ const { pull } = this.state;
let oldProject = preProps.project;
if(project && oldProject && (oldProject.id !== project.id)){
- this.compareProject(this.state.id,"master","master");
+ this.compareProject(this.state.id,pull,"master");
}
}
// 页面销毁取消监听
@@ -78,7 +79,8 @@ class NewMerge extends Component {
this.set_default_pull(result.data.branches);
this.set_default_merge(result.data.merge_projects);
}
- this.compareProject(result.data.id,"master","master");
+ const { pull } = this.state;
+ this.compareProject(result.data.id,pull||"master","master");
this.setState({isSpin: false})
})
.catch((error) => {
diff --git a/src/forge/Merge/merge.js b/src/forge/Merge/merge.js
index c0c7e5ce5..90e35dcc4 100644
--- a/src/forge/Merge/merge.js
+++ b/src/forge/Merge/merge.js
@@ -159,14 +159,10 @@ class merge extends Component {
this.getOption(e, id, name)}>
{name}
- {array &&
- array.length > 0 &&
- array.map((item, key) => {
+ {array && array.length > 0 && array.map((item, key) => {
return (
-
this.getOption(e, id, item.name)}
- >
+ ((!item.permission) || (item.permission && item.permission !== "Reporter")) &&
+ this.getOption(e, id, item.name)}>
{item.name}
);
diff --git a/src/forge/Merge/merge_form.js b/src/forge/Merge/merge_form.js
index 95a38d95e..3e395cc9a 100644
--- a/src/forge/Merge/merge_form.js
+++ b/src/forge/Merge/merge_form.js
@@ -346,18 +346,20 @@ class MergeForm extends Component {
)}
-
-
-
- 必须审查代码
-
-
- 合并后删除提交分支
-
-
- 合并后关闭提到的任务
-
-
+
+ {getFieldDecorator("checkbox-group")(
+
+
+ 必须审查代码
+
+
+ 合并后删除提交分支
+
+
+ 合并后关闭提到的任务
+
+
+ )}
diff --git a/src/forge/Order/Milepost.js b/src/forge/Order/Milepost.js
index d87bfe0b7..71e504a09 100644
--- a/src/forge/Order/Milepost.js
+++ b/src/forge/Order/Milepost.js
@@ -154,10 +154,10 @@ class Milepost extends Component {
const { projectsId , owner } = this.props.match.params;
const menu = (