fix(缺陷管理): 禅道模版创建缺陷报错

This commit is contained in:
shiziyuan9527 2021-06-16 18:51:19 +08:00 committed by 刘瑞斌
parent 89e1a847ac
commit fcdca53b18
2 changed files with 10 additions and 4 deletions

View File

@ -47,6 +47,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
public ZentaoPlatform(IssuesRequest issuesRequest) {
super(issuesRequest);
String config = getPlatformConfig(IssuesManagePlatform.Zentao.toString());
// todo
if (StringUtils.isBlank(config)) {
MSException.throwException("未集成禅道平台!");
}
JSONObject object = JSON.parseObject(config);
this.account = object.getString("account");
this.password = object.getString("password");

View File

@ -159,10 +159,12 @@ export default {
if (platform === 'Zentao') {
this.hasZentaoId = true;
this.result = this.$post("/issues/zentao/builds", {projectId: this.projectId}, response => {
this.Builds = response.data;
});
this.result = this.$post("/issues/zentao/user", {projectId: this.projectId}, response => {
this.zentaoUsers = response.data;
if (response.data) {
this.Builds = response.data;
}
this.result = this.$post("/issues/zentao/user", {projectId: this.projectId}, response => {
this.zentaoUsers = response.data;
});
});
}
if (platform === 'Tapd') {