From 4ce97e6735c6b01d93a958a9667cd07be207be8f Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 29 May 2023 15:54:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=84=91=E5=9B=BE=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E6=A8=A1=E5=9D=97=EF=BC=8C=E9=87=8D=E5=90=8D=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=B8=8D=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1026559 --user=陈建星 【测试跟踪】功能用例-模块层级大于等于3-脑图模式查看-选择展开到一级节点-提示模块已存在 https://www.tapd.cn/55049933/s/1376620 --- .../frontend/src/business/common/minder/TestCaseMinder.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue index 4be768a382..8aec888c63 100644 --- a/test-track/frontend/src/business/common/minder/TestCaseMinder.vue +++ b/test-track/frontend/src/business/common/minder/TestCaseMinder.vue @@ -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])); }