fix(接口测试): 后置提取切换重复添加空行修复
This commit is contained in:
parent
5ee4a88cdf
commit
454ccccea8
|
@ -373,7 +373,7 @@
|
|||
:params="condition.extractors"
|
||||
:disabled-except-param="props.disabled"
|
||||
:disabled-param-value="props.disabled"
|
||||
:default-param-item="defaultExtractParamItem"
|
||||
:default-param-item="defaultItem"
|
||||
:columns="extractParamsColumns"
|
||||
:selectable="false"
|
||||
:scroll="{ x: '700px' }"
|
||||
|
@ -896,6 +896,13 @@
|
|||
width: 80,
|
||||
},
|
||||
];
|
||||
const defaultItem = ref(
|
||||
cloneDeep(
|
||||
condition.value.extractors?.length
|
||||
? condition.value.extractors[condition.value.extractors.length - 1]
|
||||
: defaultExtractParamItem
|
||||
)
|
||||
);
|
||||
|
||||
function handleExtractParamTableChange(resultArr: any[], isInit?: boolean) {
|
||||
condition.value.extractors = [...resultArr];
|
||||
|
|
Loading…
Reference in New Issue