fix(脑图): 测试计划脑图三级节点禁止添加快捷键

This commit is contained in:
baiqi 2024-09-19 10:25:18 +08:00 committed by 刘瑞斌
parent 2c8ed01f8d
commit 506a74698c
1 changed files with 2 additions and 1 deletions

View File

@ -410,7 +410,8 @@
function insertNode(node: PlanMinderNode, type: string) { function insertNode(node: PlanMinderNode, type: string) {
if ( if (
(node.data?.level === 2 && type === 'AppendChildNode') || (node.data?.level === 2 && type === 'AppendChildNode') ||
(node.data?.level === 1 && type === 'AppendSiblingNode') (node.data?.level === 1 && type === 'AppendSiblingNode') ||
node.data?.level > 2
) { ) {
return; return;
} }