fix(用例脑图): shift组合快捷键判断修复

This commit is contained in:
baiqi 2024-09-12 14:52:51 +08:00 committed by Craftsman
parent 97741d4b33
commit daa4f43aec
1 changed files with 16 additions and 4 deletions

View File

@ -661,19 +661,31 @@
{
addChildModule: () => {
const node: MinderJsonNode = window.minder.getSelectedNode();
if (node.data?.resource?.includes(moduleTag) && node.data?.id !== 'root') {
//
insertNode(node, 'AppendChildNode', moduleTag);
}
},
addChildCase: () => {
const node: MinderJsonNode = window.minder.getSelectedNode();
if (node.data?.resource?.includes(moduleTag) && node.data?.id !== 'NONE') {
//
insertNode(node, 'AppendChildNode', caseTag);
}
},
addSiblingModule: () => {
const node: MinderJsonNode = window.minder.getSelectedNode();
if (node.parent?.data?.resource?.includes(moduleTag) && node.parent?.data?.id !== 'root') {
//
insertNode(node, 'AppendSiblingNode', moduleTag);
}
},
addSiblingCase: () => {
const node: MinderJsonNode = window.minder.getSelectedNode();
if (node.parent?.data?.resource?.includes(moduleTag) && node.parent?.data?.id !== 'NONE') {
//
insertNode(node, 'AppendSiblingNode', caseTag);
}
},
},
{}