Fix:修复/快捷键能收起根节点的子节点的问题

This commit is contained in:
街角小林 2024-06-14 14:03:35 +08:00
parent 1cfd50a42b
commit fcdcda929c

View File

@ -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)