fix(测试跟踪): 用例脑图修改一级模块,重名校验不准确

--bug=1026559 --user=陈建星 【测试跟踪】功能用例-模块层级大于等于3-脑图模式查看-选择展开到一级节点-提示模块已存在 https://www.tapd.cn/55049933/s/1376620
This commit is contained in:
chenjianxing 2023-05-29 15:54:37 +08:00 committed by fit2-zhao
parent d1096743c7
commit 4ce97e6735
1 changed files with 6 additions and 0 deletions

View File

@ -439,6 +439,12 @@ export default {
}
let pId = parent ? (parent.newId ? parent.newId : parent.id) : null;
if (!parent && this.selectNode && this.selectNode.data
&& this.selectNode.data.id === data.id) {
// parent, parentId
pId = this.selectNode.data.parentId;
}
if (parent && !isModuleNodeData(parent)) {
this.throwError(this.$t('test_track.case.minder_not_module_tip', [data.text]));
}