fix(接口测试): 插件表单交互切换字段显隐未按环境引用控制问题修复

This commit is contained in:
baiqi 2024-08-26 13:58:09 +08:00 committed by Craftsman
parent e667448424
commit d173b3ace0
3 changed files with 27 additions and 24 deletions

View File

@ -789,12 +789,6 @@
() => pluginScriptMap.value[requestVModel.value.protocol]?.script || []
);
//
const handlePluginFormChange = debounce(() => {
requestCompositionStore.setPluginFormMap(requestVModel.value.id, fApi.value?.formData());
handleActiveDebugChange();
}, 300);
/**
* 控制插件表单字段显示
*/
@ -820,6 +814,13 @@
return fields;
}
//
const handlePluginFormChange = debounce(() => {
requestCompositionStore.setPluginFormMap(requestVModel.value.id, fApi.value?.formData());
controlPluginFormFields(); // TODO:/
handleActiveDebugChange();
}, 300);
/**
* 设置插件表单数据
*/

View File

@ -790,15 +790,6 @@
() => pluginScriptMap.value[requestVModel.value.protocol]?.script || []
);
//
const handlePluginFormChange = debounce(() => {
if (isEditableApi.value) {
//
temporaryPluginFormMap[requestVModel.value.uniqueId] = fApi.value?.formData();
}
handleActiveDebugChange();
}, 300);
/**
* 控制插件表单字段显示
*/
@ -823,6 +814,16 @@
return fields;
}
//
const handlePluginFormChange = debounce(() => {
if (isEditableApi.value) {
//
temporaryPluginFormMap[requestVModel.value.uniqueId] = fApi.value?.formData();
controlPluginFormFields(); // TODO:/
}
handleActiveDebugChange();
}, 300);
/**
* 设置插件表单数据
*/

View File

@ -635,15 +635,6 @@
() => pluginScriptMap.value[requestVModel.value.protocol]?.script || []
);
//
const handlePluginFormChange = debounce(() => {
if (isEditableApi.value) {
//
temporaryPluginFormMap[requestVModel.value.uniqueId] = fApi.value?.formData();
}
handleActiveDebugChange();
}, 300);
/**
* 控制插件表单字段显示
*/
@ -667,6 +658,16 @@
return fields;
}
//
const handlePluginFormChange = debounce(() => {
if (isEditableApi.value) {
//
temporaryPluginFormMap[requestVModel.value.uniqueId] = fApi.value?.formData();
}
controlPluginFormFields(); // TODO:/
handleActiveDebugChange();
}, 300);
/**
* 设置插件表单数据
*/