fix(接口测试): 断言后调整断言又执行更新断言结果
This commit is contained in:
parent
a5a64ba5a4
commit
706dfadca6
|
@ -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"
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -163,6 +163,13 @@
|
|||
: props.requestResult?.responseResult.assertions || [];
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.requestResult?.responseResult.assertions,
|
||||
() => {
|
||||
tableData.value = props.requestResult?.responseResult.assertions || [];
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
|
Loading…
Reference in New Issue