Thanks @eryajf for the contribution! Close #1121
确保连接到分组中的连接时,原地更新现有节点属性,避免添加重复的根节点。 使用 findNode 递归搜索替代 findIndex 只搜索根级别。原地修改节点属性而非替换整个对象,保留父子引用关系。