From bc608e60b7cb5959d27ed78ddeb1428cdc6cf466 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 6 Feb 2023 14:00:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E4=BF=9D=E5=AD=98=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=96=AD=E8=A8=80=E5=A4=B1=E8=B4=A5=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022333 --user=王孝刚 【接口测试】github#21527,场景中的接口添加文档结构断言,保存失败 https://www.tapd.cn/55049933/s/1331762 --- .../src/business/components/api/definition/api-definition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/api-definition.js b/frontend/src/business/components/api/definition/api-definition.js index bf70d750dc..aac1957f05 100644 --- a/frontend/src/business/components/api/definition/api-definition.js +++ b/frontend/src/business/components/api/definition/api-definition.js @@ -160,7 +160,7 @@ export function stepCompute(array, request) { export function mergeDocumentData(originalData, childMap, rootData) { originalData.forEach((item) => { - if (item.id === 'root') { + if (item.id === 'root' && rootData) { item.type = rootData.type; item.name = rootData.name; item.typeVerification = rootData.typeVerification;