明树Git Lab

Commit c324d6bd authored by zengfanpei's avatar zengfanpei

update

parent f2d30b6f
......@@ -46,7 +46,7 @@ function buildTree(nodes) {
});
// 从映射中提取顶级节点(parentId为null)
return Array.from(nodeMap.values()).filter(node => node.parentId === null);
return _.orderBy(Array.from(nodeMap.values()).filter(node => node.parentId === null), 'order');
}
function disTree(tree) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment