fix(接口测试): 修复状态码展示错误&步骤展开折叠错误问题
This commit is contained in:
parent
3f816cc03f
commit
3b4a12a362
|
@ -150,6 +150,7 @@
|
|||
innerModelValue.value.push(innerInputValue.value.trim());
|
||||
innerInputValue.value = '';
|
||||
tagsLength.value += 1;
|
||||
emit('update:modelValue', innerModelValue.value);
|
||||
}
|
||||
emit('blur');
|
||||
}
|
||||
|
|
|
@ -31,13 +31,13 @@
|
|||
<div class="flex flex-row gap-6 text-center">
|
||||
<a-popover position="left" content-class="response-popover-content">
|
||||
<div class="one-line-text max-w-[200px]" :style="{ color: statusCodeColor }">
|
||||
{{ activeStepDetail?.content?.responseResult.responseCode || '-' }}
|
||||
{{ activeStepDetailCopy?.content?.responseResult.responseCode || '-' }}
|
||||
</div>
|
||||
<template #content>
|
||||
<div class="flex items-center gap-[8px] text-[14px]">
|
||||
<div class="text-[var(--color-text-4)]">{{ t('apiTestDebug.statusCode') }}</div>
|
||||
<div :style="{ color: statusCodeColor }">
|
||||
{{ activeStepDetail?.content?.responseResult.responseCode || '-' }}
|
||||
{{ activeStepDetailCopy?.content?.responseResult.responseCode || '-' }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
class="flex cursor-pointer items-center gap-[2px] text-[var(--color-text-4)]"
|
||||
>
|
||||
<MsIcon
|
||||
:type="step.expanded ? 'icon-icon_split_turn-down_arrow' : 'icon-icon_split-turn-down-left'"
|
||||
:type="step.expanded ? 'icon-icon_split-turn-down-left' : 'icon-icon_split_turn-down_arrow'"
|
||||
:size="14"
|
||||
/>
|
||||
<span class="mx-1"> {{ step.children?.length || 0 }}</span>
|
||||
|
@ -256,6 +256,10 @@
|
|||
data.node.stepChildren = cloneDeep(data.node.children);
|
||||
data.node.children = [];
|
||||
}
|
||||
const realStep = findNodeByKey<ScenarioItemType>(steps.value, data.node?.stepId, 'stepId');
|
||||
if (realStep) {
|
||||
realStep.expanded = !realStep.expanded;
|
||||
}
|
||||
}
|
||||
|
||||
const selectedKeys = ref<(string | number)[]>([]);
|
||||
|
|
Loading…
Reference in New Issue