fix(项目管理): 环境管理-添加HTTP-选择接口模块-修复缺少包含新增子模块的缺陷

--bug=1049204 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049204
--bug=1049202 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049202
This commit is contained in:
teukkk 2024-11-21 15:18:24 +08:00 committed by Craftsman
parent 8bac9255da
commit 8bd334afcd
2 changed files with 10 additions and 1 deletions

View File

@ -82,7 +82,7 @@
}} }}
</MsButton> </MsButton>
<MoreMenuDropdown <MoreMenuDropdown
v-if="props.showContainChildModule && !nodeData.disabled && nodeData.children && nodeData.children.length" v-if="props.showContainChildModule && !nodeData.disabled && nodeData.id !== 'root'"
v-model:contain-child-module="nodeData.containChildModule" v-model:contain-child-module="nodeData.containChildModule"
@handle-contain-child-module=" @handle-contain-child-module="
(containChildModule) => handleContainChildModule(nodeData, containChildModule) (containChildModule) => handleContainChildModule(nodeData, containChildModule)

View File

@ -395,6 +395,15 @@
} }
); );
watch(
() => form.value.moduleId,
(newValue) => {
if (newValue) {
httpRef.value?.validateField('moduleId');
}
}
);
const handleCancel = () => { const handleCancel = () => {
visible.value = false; visible.value = false;
resetForm(); resetForm();