fix(接口测试): 场景树模块重命名

--bug=1047056 --user=白奇 【接口场景】-重命名模块,不修改直接保存,提示已有此模块 https://www.tapd.cn/55049933/s/1584806
This commit is contained in:
baiqi 2024-09-24 14:43:05 +08:00 committed by Craftsman
parent 74d43836d7
commit 645e00054f
2 changed files with 1 additions and 3 deletions

View File

@ -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';

View File

@ -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"