fix(测试跟踪): 脑图中用例关联缺陷双击报错问题

--bug=1016238 --user=宋昌昌 【测试跟踪】测试计划-脑图中关联缺陷后-保存-双击缺陷ID 提示错误信息,无法查看缺陷 https://www.tapd.cn/55049933/s/1232537
This commit is contained in:
song-cc-rock 2022-08-24 15:58:40 +08:00 committed by f2c-ci-robot[bot]
parent 43d407fadc
commit a69c729627
1 changed files with 5 additions and 1 deletions

View File

@ -201,7 +201,11 @@ name: "TestCaseMinder",
} }
if (node.data.type === 'issue') { if (node.data.type === 'issue') {
getIssuesListById(node.data.id, this.projectId,this.workspaceId,(data) => { getIssuesListById(node.data.id, this.projectId,this.workspaceId,(data) => {
if (data.customFields && data.customFields.toString().trim() !== '') {
data.customFields = JSON.parse(data.customFields); data.customFields = JSON.parse(data.customFields);
} else {
data.customFields = null;
}
this.$refs.issueEdit.open(data); this.$refs.issueEdit.open(data);
}); });
} }