mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(接口测试): 插件响应展示
This commit is contained in:
parent
ad200bdac3
commit
ba9c4afc76
@ -949,7 +949,7 @@
|
||||
() =>
|
||||
isHttpProtocol.value ||
|
||||
!props.isDefinition ||
|
||||
requestVModel.value.response?.requestResults[0]?.responseResult.responseCode ||
|
||||
requestVModel.value.response?.requestResults[0]?.responseResult ||
|
||||
props.isCase
|
||||
);
|
||||
const activeLayout = ref<'horizontal' | 'vertical'>('vertical');
|
||||
|
@ -944,7 +944,7 @@
|
||||
}
|
||||
|
||||
const showResponse = computed(
|
||||
() => isHttpProtocol.value || requestVModel.value.response?.requestResults[0]?.responseResult.responseCode
|
||||
() => isHttpProtocol.value || requestVModel.value.response?.requestResults[0]?.responseResult
|
||||
);
|
||||
const activeLayout = ref<'horizontal' | 'vertical'>('vertical');
|
||||
const isVerticalExpanded = computed(() => activeLayout.value === 'vertical');
|
||||
@ -1064,6 +1064,7 @@
|
||||
if (valid === true) {
|
||||
emit('execute', makeRequestParams(executeType) as RequestParam, executeType);
|
||||
} else {
|
||||
requestVModel.value.executeLoading = false;
|
||||
requestVModel.value.activeTab = RequestComposition.PLUGIN;
|
||||
nextTick(() => {
|
||||
scrollIntoView(document.querySelector('.arco-form-item-message'), { block: 'center' });
|
||||
|
@ -70,6 +70,9 @@ export default function useStepExecute({
|
||||
websocketMap[reportId]?.close();
|
||||
if (step.reportId === data.reportId) {
|
||||
step.isExecuting = false;
|
||||
if (_scenario.stepResponses[step.uniqueId] === undefined) {
|
||||
_scenario.stepResponses[step.uniqueId] = [];
|
||||
}
|
||||
updateStepStatus([step], _scenario.stepResponses, step.uniqueId);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user