From 487aaa5c6e96da38e959daf545df43cd410d769d Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 4 Nov 2022 19:02:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=AD=E8=A8=80=E6=B7=BB=E5=8A=A0=E5=AD=90?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=97=A0=E6=95=88=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019419 --user=王孝刚 【接口测试】github#19488,接口自动化TEST界面断言文档结构时“添加子字段”按钮功能无效 https://www.tapd.cn/55049933/s/1289916 --- .../definition/components/assertion/document/DocumentBody.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue index 3b20de181d..37dae10314 100644 --- a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue +++ b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue @@ -481,7 +481,7 @@ export default { let newRow = this.getNewRow(); newRow.idList = [row.id, newRow.id]; newRow.parentId = row.id; - if (this.mapData.has(row.id) && this.mapData.get(row.id).length > 0) { + if (this.mapData.has(row.id)) { this.mapData.get(row.id).push(newRow); } else { this.getChild(this.originalData, row);