fix(场景步骤): 修复请求断言报错

This commit is contained in:
baiqi 2024-03-28 10:15:43 +08:00 committed by Craftsman
parent 3faeb985f0
commit 21cf8dcb37
3 changed files with 5 additions and 5 deletions

View File

@ -217,7 +217,7 @@
<postcondition
v-else-if="requestVModel.activeTab === RequestComposition.POST_CONDITION"
v-model:config="requestVModel.children[0].postProcessorConfig"
:response="props.stepResponses?.[requestVModel.stepId].responseResult.body"
:response="props.stepResponses?.[requestVModel.stepId]?.responseResult.body"
:layout="activeLayout"
:disabled="!isEditableApi"
:second-box-height="secondBoxHeight"
@ -227,7 +227,7 @@
<assertion
v-else-if="requestVModel.activeTab === RequestComposition.ASSERTION"
v-model:params="requestVModel.children[0].assertionConfig.assertions"
:response="props.stepResponses?.[requestVModel.stepId].responseResult.body"
:response="props.stepResponses?.[requestVModel.stepId]?.responseResult.body"
is-definition
:disabled="!isEditableApi"
:assertion-config="requestVModel.children[0].assertionConfig"

View File

@ -219,7 +219,7 @@
<postcondition
v-else-if="requestVModel.activeTab === RequestComposition.POST_CONDITION"
v-model:config="requestVModel.children[0].postProcessorConfig"
:response="props.stepResponses?.[requestVModel.stepId].responseResult.body"
:response="props.stepResponses?.[requestVModel.stepId]?.responseResult.body"
:layout="activeLayout"
:disabled="!isEditableApi"
:second-box-height="secondBoxHeight"
@ -229,7 +229,7 @@
<assertion
v-else-if="requestVModel.activeTab === RequestComposition.ASSERTION"
v-model:params="requestVModel.children[0].assertionConfig.assertions"
:response="props.stepResponses?.[requestVModel.stepId].responseResult.body"
:response="props.stepResponses?.[requestVModel.stepId]?.responseResult.body"
is-definition
:disabled="!isEditableApi"
:assertion-config="requestVModel.children[0].assertionConfig"

View File

@ -1,5 +1,5 @@
<template>
<MsCard no-content-padding simple>
<MsCard has-breadcrumb no-content-padding simple>
<div class="p-[24px_24px_8px_24px]">
<MsEditableTab
v-model:active-tab="activeApiTab"