fix(接口测试): 插件显示字段问题修复

This commit is contained in:
baiqi 2024-08-23 15:04:04 +08:00 committed by 刘瑞斌
parent 54b6c1d53a
commit d29667f185
2 changed files with 7 additions and 2 deletions

View File

@ -494,7 +494,7 @@
stepName: '',
resourceId: '',
customizeRequest: true,
customizeRequestEnvEnable: false,
customizeRequestEnvEnable: true,
protocol: 'HTTP',
url: '',
activeTab: RequestComposition.HEADER,
@ -819,6 +819,7 @@
//
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
}
fApi.value?.refresh(); //
return fields;
}
@ -1305,6 +1306,7 @@
responseActiveTab: ResponseComposition.BODY,
stepId: props.step?.uniqueId || '',
uniqueId: props.step?.uniqueId || '',
customizeRequestEnvEnable: true,
isNew: false,
});
if (_stepType.value.isQuoteApi) {
@ -1324,6 +1326,7 @@
...defaultApiParams,
stepId: id,
uniqueId: id,
customizeRequestEnvEnable: false,
protocol:
localProtocol?.length && protocolOptions.value.some((item) => item.value === localProtocol)
? localProtocol

View File

@ -344,7 +344,7 @@
stepId: '',
uniqueId: '',
resourceId: '',
customizeRequestEnvEnable: false,
customizeRequestEnvEnable: true,
protocol: 'HTTP',
url: '',
activeTab: RequestComposition.HEADER,
@ -663,6 +663,7 @@
//
fApi.value?.hidden(true, currentFormFields?.filter((e) => !fields.includes(e)) || []);
}
fApi.value?.refresh(); //
return fields;
}
@ -1005,6 +1006,7 @@
resourceId: res.id,
stepId: activeStep.value?.id || '',
uniqueId: activeStep.value?.uniqueId || '',
customizeRequestEnvEnable: true,
...parseRequestBodyResult,
};
nextTick(() => {