refactor: 保存jira认证信息时补全地址
This commit is contained in:
parent
336020322d
commit
63fc4c0f1e
|
@ -161,18 +161,26 @@
|
||||||
this.$warning(this.$t('organization.integration.choose_platform'));
|
this.$warning(this.$t('organization.integration.choose_platform'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$refs[form].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
|
||||||
|
let formatUrl = this.form.url;
|
||||||
|
if (!formatUrl.endsWith('/')) {
|
||||||
|
formatUrl = formatUrl + '/';
|
||||||
|
}
|
||||||
|
|
||||||
let param = {};
|
let param = {};
|
||||||
let auth = {
|
let auth = {
|
||||||
account: this.form.account,
|
account: this.form.account,
|
||||||
password: this.form.password,
|
password: this.form.password,
|
||||||
url: this.form.url,
|
url: formatUrl,
|
||||||
issuetype: this.form.issuetype
|
issuetype: this.form.issuetype
|
||||||
};
|
};
|
||||||
param.organizationId = getCurrentUser().lastOrganizationId;
|
param.organizationId = getCurrentUser().lastOrganizationId;
|
||||||
param.platform = this.platform;
|
param.platform = this.platform;
|
||||||
param.configuration = JSON.stringify(auth);
|
param.configuration = JSON.stringify(auth);
|
||||||
this.$refs[form].validate(valid => {
|
|
||||||
if (valid) {
|
|
||||||
this.result = this.$post("service/integration/save", param, () => {
|
this.result = this.$post("service/integration/save", param, () => {
|
||||||
this.show = true;
|
this.show = true;
|
||||||
this.showEdit = true;
|
this.showEdit = true;
|
||||||
|
|
Loading…
Reference in New Issue