forked from Gitlink/forgeplus-react
commit clear
This commit is contained in:
parent
e25de315f8
commit
278cdba352
|
@ -178,8 +178,6 @@ class CreateMerge extends Component {
|
|||
|
||||
// compare接口,获取分支对比信息
|
||||
compareProject = (sameProject, branchParams) => {
|
||||
// const { project } = this.props;
|
||||
// const { owner, projectsId } = this.props.match.params;
|
||||
const { pullOwner, pullBranch, mergeOwner, mergeBranch, projectId } = branchParams;
|
||||
|
||||
let url = `/${mergeOwner}/${projectId}/compare`;
|
||||
|
|
|
@ -4,8 +4,6 @@ import OrderItem from './order_form'
|
|||
|
||||
|
||||
function CopyDetail(props){
|
||||
const operate = props.match.params.operate;
|
||||
console.log(operate);
|
||||
return(
|
||||
<OrderItem form_type="copy" {...props}></OrderItem>
|
||||
)
|
||||
|
|
|
@ -124,22 +124,6 @@ class Detail extends Component {
|
|||
//复制
|
||||
copydetail = () => {
|
||||
const { projectsId, orderId, owner } = this.props.match.params;
|
||||
// const url = `/${owner}/${projectsId}/issues/${orderId}/copy.json`;
|
||||
// axios
|
||||
// .post(url, {
|
||||
// project_id: projectsId,
|
||||
// id: orderId,
|
||||
// })
|
||||
// .then((result) => {
|
||||
// if (result) {
|
||||
// this.props.history.push(
|
||||
// `/${owner}/${projectsId}/issues/${result.data.issue_id}/copyetail`
|
||||
// );
|
||||
// }
|
||||
// })
|
||||
// .catch((error) => {
|
||||
// console.log(error);
|
||||
// });
|
||||
this.props.history.push(
|
||||
`/${owner}/${projectsId}/issues/${orderId}/copyetail`
|
||||
);
|
||||
|
|
|
@ -49,16 +49,6 @@
|
|||
justify-content: center
|
||||
}
|
||||
}
|
||||
// .statusTag{
|
||||
// display: block;
|
||||
// height: 24px;
|
||||
// line-height: 24px;
|
||||
// border-radius: 4px;
|
||||
// padding:0px 12px;
|
||||
// color: #fff;
|
||||
// margin:3px 0px 0px 10px;
|
||||
// }
|
||||
|
||||
.updateBtn{
|
||||
display: block;
|
||||
width:60px;
|
||||
|
|
Loading…
Reference in New Issue