From a75c5f478c7b7dc84dc215bcf7e1e80c84b098ad Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 2 Jun 2022 10:43:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B9=E7=9B=AE=E7=BC=96=E8=BE=91=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E6=8B=A9jira=E9=97=AE=E9=A2=98=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013732 --user=陈建星 【项目管理】创建/编辑项目,第三方平台选jira,问题/需求类型无法选择 https://www.tapd.cn/55049933/s/1172306 --- .../src/business/components/project/menu/EditProject.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/project/menu/EditProject.vue b/frontend/src/business/components/project/menu/EditProject.vue index eb049d8df8..d3a2ee1385 100644 --- a/frontend/src/business/components/project/menu/EditProject.vue +++ b/frontend/src/business/components/project/menu/EditProject.vue @@ -219,7 +219,14 @@ export default { listenGoBack(this.handleClose); if (row) { this.title = this.$t('project.edit'); - row.issueConfigObj = row.issueConfig ? JSON.parse(row.issueConfig) : {}; + row.issueConfigObj = row.issueConfig ? JSON.parse(row.issueConfig) : {jiraIssueTypeId: null, jiraStoryTypeId: null}; + // 兼容性处理 + if (!row.issueConfigObj.jiraIssueTypeId) { + row.issueConfigObj.jiraIssueTypeId = null; + } + if (!row.issueConfigObj.jiraStoryTypeId) { + row.issueConfigObj.jiraStoryTypeId = null; + } this.form = Object.assign({}, row); this.issueTemplateId = row.issueTemplateId; } else {