Commit 962a3e43 authored by shiziyuan9527's avatar shiziyuan9527
Browse files

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

parent 26c9e03f
Showing with 10 additions and 4 deletions
+10 -4
......@@ -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') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment