refactor: 修改导航分页排序

This commit is contained in:
2025-04-09 14:09:57 +08:00
parent 8196490dad
commit 033af1cbc6

View File

@@ -52,7 +52,7 @@ class NavigationItem
}
}
})
->order(['item.sort' => 'asc', 'item.id' => 'asc'])
->order(['item.nav_id' => 'asc', 'item.sort' => 'asc', 'item.id' => 'asc'])
->select();
return success('获取成功', array_to_tree($navigations->toArray(), 0, 'pid'));