fix(缺陷管理): 禅道模版创建缺陷报错
This commit is contained in:
parent
89e1a847ac
commit
fcdca53b18
|
@ -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");
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue