feat(接口测试): mock接口联调header
This commit is contained in:
parent
83062061c9
commit
d3194932cc
|
@ -374,19 +374,19 @@
|
||||||
const currentKeyOptions = computed(() => {
|
const currentKeyOptions = computed(() => {
|
||||||
switch (activeTab.value) {
|
switch (activeTab.value) {
|
||||||
case RequestComposition.HEADER:
|
case RequestComposition.HEADER:
|
||||||
return filterKeyValParams(props.definitionDetail.headers, defaultMatchRuleItem).validParams.filter((e) => ({
|
return filterKeyValParams(props.definitionDetail.headers, defaultMatchRuleItem).validParams.map((e) => ({
|
||||||
label: e.key,
|
label: e.key,
|
||||||
value: e.value,
|
value: e.key,
|
||||||
}));
|
}));
|
||||||
case RequestComposition.QUERY:
|
case RequestComposition.QUERY:
|
||||||
return filterKeyValParams(props.definitionDetail.query, defaultMatchRuleItem).validParams.filter((e) => ({
|
return filterKeyValParams(props.definitionDetail.query, defaultMatchRuleItem).validParams.map((e) => ({
|
||||||
label: e.key,
|
label: e.key,
|
||||||
value: e.value,
|
value: e.key,
|
||||||
}));
|
}));
|
||||||
case RequestComposition.REST:
|
case RequestComposition.REST:
|
||||||
return filterKeyValParams(props.definitionDetail.rest, defaultMatchRuleItem).validParams.filter((e) => ({
|
return filterKeyValParams(props.definitionDetail.rest, defaultMatchRuleItem).validParams.map((e) => ({
|
||||||
label: e.key,
|
label: e.key,
|
||||||
value: e.value,
|
value: e.key,
|
||||||
}));
|
}));
|
||||||
default:
|
default:
|
||||||
return [];
|
return [];
|
||||||
|
@ -408,9 +408,10 @@
|
||||||
return filterKeyValParams(
|
return filterKeyValParams(
|
||||||
props.definitionDetail.body.wwwFormBody.formValues,
|
props.definitionDetail.body.wwwFormBody.formValues,
|
||||||
defaultMatchRuleItem
|
defaultMatchRuleItem
|
||||||
).validParams.filter((e) => ({
|
).validParams.map((e) => ({
|
||||||
label: e.key,
|
label: e.key,
|
||||||
value: e.value,
|
value: e.key,
|
||||||
|
paramType: e.paramType,
|
||||||
}));
|
}));
|
||||||
default:
|
default:
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Reference in New Issue