合并请求地址多次转义
This commit is contained in:
parent
ce1efa4bb2
commit
9e5cc98762
|
|
@ -275,8 +275,8 @@ class CreateMerge extends Component {
|
|||
let _url = `/${mergeOwner}/${projectId}/compare/`;
|
||||
// type为pull时,pullBranch取value,否则取原有值
|
||||
// type为pull时,mergeBranch取原有值,否则取value
|
||||
let _pullBranch = type === 'pull' ? value : pullBranch;
|
||||
let _mergeBranch = type === 'pull' ? mergeBranch : value;
|
||||
let _pullBranch = type === 'pull' ? value : returnbar(pullBranch);
|
||||
let _mergeBranch = type === 'pull' ? returnbar(mergeBranch) : value;
|
||||
if (pullOwner === mergeOwner) {
|
||||
// 如果仓库相同, compare/目标分支...源分支
|
||||
_url += `${turnbar(_mergeBranch)}...${turnbar(_pullBranch)}`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue