From 85f06fb2a5cae3af0a63596fc55adcc2fd643573 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 26 Jul 2024 18:27:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=89=A7=E8=A1=8C=E6=8F=92=E4=BB=B6=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E8=AF=B7=E6=B1=82=E6=97=B6=EF=BC=8Cbody=20=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/api-test/scenario/components/step/stepTree.vue | 6 +++--- frontend/src/views/api-test/scenario/components/utils.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/api-test/scenario/components/step/stepTree.vue b/frontend/src/views/api-test/scenario/components/step/stepTree.vue index 19c2343b83..5c207919f1 100644 --- a/frontend/src/views/api-test/scenario/components/step/stepTree.vue +++ b/frontend/src/views/api-test/scenario/components/step/stepTree.vue @@ -1257,9 +1257,9 @@ body: { ...request.body, jsonBody: { - ...request.body.jsonBody, - jsonSchema: request.body.jsonBody.jsonSchemaTableData - ? parseTableDataToJsonSchema(request.body.jsonBody.jsonSchemaTableData[0]) + ...request.body?.jsonBody, + jsonSchema: request.body?.jsonBody?.jsonSchemaTableData + ? parseTableDataToJsonSchema(request.body?.jsonBody?.jsonSchemaTableData?.[0]) : undefined, }, }, diff --git a/frontend/src/views/api-test/scenario/components/utils.ts b/frontend/src/views/api-test/scenario/components/utils.ts index 163d842e29..56460f86a6 100644 --- a/frontend/src/views/api-test/scenario/components/utils.ts +++ b/frontend/src/views/api-test/scenario/components/utils.ts @@ -137,8 +137,8 @@ export function getStepDetails(steps: ScenarioStepItem[], details: Record