mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复/快捷键能收起根节点的子节点的问题
This commit is contained in:
parent
1cfd50a42b
commit
fcdcda929c
@ -1553,7 +1553,7 @@ class Render {
|
||||
// 切换激活节点的展开状态
|
||||
toggleActiveExpand() {
|
||||
this.activeNodeList.forEach(node => {
|
||||
if (node.nodeData.children.length <= 0) {
|
||||
if (node.nodeData.children.length <= 0 || node.isRoot) {
|
||||
return
|
||||
}
|
||||
this.toggleNodeExpand(node)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user