diff --git a/frontend/src/hooks/useSelect.ts b/frontend/src/hooks/useSelect.ts index 364dab045d..a8801e61a3 100644 --- a/frontend/src/hooks/useSelect.ts +++ b/frontend/src/hooks/useSelect.ts @@ -1,5 +1,3 @@ -import { computed, nextTick, onBeforeUnmount, onMounted, Ref, ref, watch } from 'vue'; - import { calculateMaxDepth } from '@/utils'; import type { CascaderOption, SelectOptionData } from '@arco-design/web-vue'; diff --git a/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue b/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue index 9498f770d3..cf63633bfd 100644 --- a/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue +++ b/frontend/src/views/api-test/scenario/components/scenarioModuleTree.vue @@ -108,7 +108,7 @@ :parent-id="nodeData.id" :node-id="nodeData.id" :field-config="{ field: renameFolderTitle }" - :all-names="(nodeData.parent? nodeData.parent.children || [] : folderTree).map((e: ModuleTreeNode) => e.name || '')" + :all-names="(nodeData.parent? nodeData.parent.children || [] : folderTree).filter((e:ModuleTreeNode) => e.id !== nodeData.id).map((e: ModuleTreeNode) => e.name || '')" :update-module-api="updateModule" @close="resetFocusNodeKey" @rename-finish="initModules"