fix(接口测试): 插件显示字段问题修复
This commit is contained in:
parent
54b6c1d53a
commit
d29667f185
|
@ -494,7 +494,7 @@
|
||||||
stepName: '',
|
stepName: '',
|
||||||
resourceId: '',
|
resourceId: '',
|
||||||
customizeRequest: true,
|
customizeRequest: true,
|
||||||
customizeRequestEnvEnable: false,
|
customizeRequestEnvEnable: true,
|
||||||
protocol: 'HTTP',
|
protocol: 'HTTP',
|
||||||
url: '',
|
url: '',
|
||||||
activeTab: RequestComposition.HEADER,
|
activeTab: RequestComposition.HEADER,
|
||||||
|
@ -819,6 +819,7 @@
|
||||||
// 隐藏多余的字段
|
// 隐藏多余的字段
|
||||||
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
|
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
|
||||||
}
|
}
|
||||||
|
fApi.value?.refresh(); // 刷新表单,避免字段显隐切换后部分字段不显示
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1305,6 +1306,7 @@
|
||||||
responseActiveTab: ResponseComposition.BODY,
|
responseActiveTab: ResponseComposition.BODY,
|
||||||
stepId: props.step?.uniqueId || '',
|
stepId: props.step?.uniqueId || '',
|
||||||
uniqueId: props.step?.uniqueId || '',
|
uniqueId: props.step?.uniqueId || '',
|
||||||
|
customizeRequestEnvEnable: true,
|
||||||
isNew: false,
|
isNew: false,
|
||||||
});
|
});
|
||||||
if (_stepType.value.isQuoteApi) {
|
if (_stepType.value.isQuoteApi) {
|
||||||
|
@ -1324,6 +1326,7 @@
|
||||||
...defaultApiParams,
|
...defaultApiParams,
|
||||||
stepId: id,
|
stepId: id,
|
||||||
uniqueId: id,
|
uniqueId: id,
|
||||||
|
customizeRequestEnvEnable: false,
|
||||||
protocol:
|
protocol:
|
||||||
localProtocol?.length && protocolOptions.value.some((item) => item.value === localProtocol)
|
localProtocol?.length && protocolOptions.value.some((item) => item.value === localProtocol)
|
||||||
? localProtocol
|
? localProtocol
|
||||||
|
|
|
@ -344,7 +344,7 @@
|
||||||
stepId: '',
|
stepId: '',
|
||||||
uniqueId: '',
|
uniqueId: '',
|
||||||
resourceId: '',
|
resourceId: '',
|
||||||
customizeRequestEnvEnable: false,
|
customizeRequestEnvEnable: true,
|
||||||
protocol: 'HTTP',
|
protocol: 'HTTP',
|
||||||
url: '',
|
url: '',
|
||||||
activeTab: RequestComposition.HEADER,
|
activeTab: RequestComposition.HEADER,
|
||||||
|
@ -663,6 +663,7 @@
|
||||||
// 隐藏多余的字段
|
// 隐藏多余的字段
|
||||||
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
|
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
|
||||||
}
|
}
|
||||||
|
fApi.value?.refresh(); // 刷新表单,避免字段显隐切换后部分字段不显示
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1005,6 +1006,7 @@
|
||||||
resourceId: res.id,
|
resourceId: res.id,
|
||||||
stepId: activeStep.value?.id || '',
|
stepId: activeStep.value?.id || '',
|
||||||
uniqueId: activeStep.value?.uniqueId || '',
|
uniqueId: activeStep.value?.uniqueId || '',
|
||||||
|
customizeRequestEnvEnable: true,
|
||||||
...parseRequestBodyResult,
|
...parseRequestBodyResult,
|
||||||
};
|
};
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
|
Loading…
Reference in New Issue