From fab4581539d7638283b18deaa4cfa56bd4d36ab7 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 9 Aug 2022 11:14:10 +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=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E4=B8=AD?= =?UTF-8?q?case=E5=A2=9E=E5=8A=A0=E6=96=87=E6=A1=A3=E6=96=AD=E8=A8=80?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=A4=B1=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=1015707 --user=王孝刚 【接口测试】github#16734,场景中条件控制器下接口,添加断言-json文档结构校验字段,执行后无断言,保存后重新编辑,此字段未空 https://www.tapd.cn/55049933/s/1220746 --- .../components/api/automation/scenario/EditApiScenario.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 6a8c772507..77be65a814 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1434,7 +1434,7 @@ export default { mergeScenario(data) { data.forEach(item => { mergeRequestDocumentData(item); - if (item.hashTree && item.hashTree > 0) { + if (item.hashTree && item.hashTree.length > 0) { this.mergeScenario(item.hashTree); } })