Commit b9621616 by Ivan

fix: 未提交的代码

parent 4836cc26
......@@ -50,7 +50,7 @@ module SimpleController::GroupIndex
def tree_result_mount_data(tree_result, statistics, group_configs, depth=0)
(tree_result || []).map do |key, value|
children =
if depth > group_configs.length
if depth + 1 > group_configs.length - 1
[]
elsif value.is_a?(Hash)
tree_result_mount_data(value, statistics, group_configs, depth + 1)
......
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