diff --git a/frontend/src/components/business/ms-minders/testPlanMinder/index.vue b/frontend/src/components/business/ms-minders/testPlanMinder/index.vue index aee8d8e373..907c564087 100644 --- a/frontend/src/components/business/ms-minders/testPlanMinder/index.vue +++ b/frontend/src/components/business/ms-minders/testPlanMinder/index.vue @@ -306,6 +306,13 @@ () => props.status !== 'ARCHIVED' && hasAnyPermission(['PROJECT_TEST_PLAN:READ+UPDATE']) ); + /** + * 是否可以显示下拉菜单 + */ + const canShowDropdown = ref(false); + const dropdownList = ref([]); + const checkedVal = ref(); + /** * 检测节点可展示的菜单项 * @param node 选中节点 @@ -752,18 +759,12 @@ } ); - /** - * 是否可以显示下拉菜单 - */ - const canShowDropdown = ref(false); - const dropdownList = ref([]); - const checkedVal = ref(); - /** * 处理节点选中 * @param node 节点 */ function handleNodeSelect(node: PlanMinderNode) { + canShowDropdown.value = false; if (checkConfigFormUnsaved()) { return; } diff --git a/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue b/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue index 61d6ff736b..66558a0b0e 100644 --- a/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue +++ b/frontend/src/components/pure/ms-minder-editor/menu/nodeDropdown.vue @@ -17,7 +17,9 @@ :class="props.checkedVal === item.value ? 'ms-minder-node-dropdown-item--active' : ''" @click="item.onClick && item.onClick()" > -
{{ item.label }}
+ +
{{ item.label }}
+
@@ -45,6 +47,7 @@