mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 16:49:02 +08:00
refine mindmap (#1844)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
parent
a199572bf8
commit
7bc9742674
@ -43,7 +43,7 @@ def be_children(obj: dict, keyset:set):
|
||||
keyset.add(k)
|
||||
arr.append({
|
||||
"id": k,
|
||||
"children": be_children(v, keyset) if isinstance(v, dict) else []
|
||||
"children": be_children(v, keyset)
|
||||
})
|
||||
return arr
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user