Merge pull request #9461 from dataease/pr@dev@fix_panel-sort

fix(仪表板): 修复资源列表三层以上排序失效问题
This commit is contained in:
王嘉豪 2024-04-29 18:35:57 +08:00 committed by GitHub
commit 92d7c31838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ export function sortCircle(tree, hisSortType, sortType) {
sortPer(tree, hisSortType, sortType)
tree.forEach(node => {
if (node.children && node.children.length > 0) {
sortPer(node.children, hisSortType, sortType)
sortCircle(node.children, hisSortType, sortType)
}
})
return tree