From 45eee7a4831112a62b6a8fc3d8cb6759442c45ca Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 9 Feb 2022 17:44:16 +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=87=E6=A1=A3=E7=BB=93=E6=9E=84=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E7=B1=BB=E5=9E=8B=E5=BF=85=E5=90=AB=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010130 --user=赵勇 【接口测试】 github#10194,添加文档断言,检验字段类型,是否必填不准确。响应json数据中包含jsonArray对象中的字段值无法检验 https://www.tapd.cn/55049933/s/1102408 --- .../components/assertion/document/DocumentBody.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/components/assertion/document/DocumentBody.vue b/frontend/src/business/components/api/definition/components/assertion/document/DocumentBody.vue index 8091bc7edb..3234bb965d 100644 --- a/frontend/src/business/components/api/definition/components/assertion/document/DocumentBody.vue +++ b/frontend/src/business/components/api/definition/components/assertion/document/DocumentBody.vue @@ -30,7 +30,7 @@ @@ -307,6 +307,9 @@ export default { arr.forEach(item => { if (type === 1) { item.include = val + if (item.type === 'array') { + item.include = false; + } } if (type === 2) { item.typeVerification = val @@ -326,6 +329,9 @@ export default { } this.tableData.forEach(item => { item.include = val; + if (item.type === 'array') { + item.include = false; + } this.childrenChecked(item.children, 1, val); }) },