fix(接口测试): 断言后调整断言又执行更新断言结果

This commit is contained in:
baiqi 2024-11-21 14:01:30 +08:00 committed by Craftsman
parent a5a64ba5a4
commit 706dfadca6
3 changed files with 10 additions and 1 deletions

View File

@ -71,6 +71,7 @@
<result
v-else-if="!props.isEdit || (props.isEdit && activeResponseType === 'result')"
v-model:active-tab="activeTab"
:loading="props.loading"
:request-result="props.requestResult"
:console="props.console"
:is-http-protocol="props.isHttpProtocol"

View File

@ -6,7 +6,7 @@
</a-tabs>
<slot name="tabRight"></slot>
</div>
<div class="response-container">
<div v-if="!props.loading" class="response-container">
<ResBody
v-if="activeTab === ResponseComposition.BODY"
ref="resBodyRef"
@ -79,6 +79,7 @@
isHttpProtocol?: boolean;
isDefinition?: boolean;
showEmpty?: boolean;
loading?: boolean;
}>(),
{
showEmpty: true,

View File

@ -163,6 +163,13 @@
: props.requestResult?.responseResult.assertions || [];
}
}
watch(
() => props.requestResult?.responseResult.assertions,
() => {
tableData.value = props.requestResult?.responseResult.assertions || [];
}
);
</script>
<style lang="less" scoped>