refactor: 修改导航分页排序

This commit is contained in:
2025-04-09 14:09:57 +08:00
parent cc50404950
commit 81b9bbf120

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(); ->select();
return success('获取成功', array_to_tree($navigations->toArray(), 0, 'pid')); return success('获取成功', array_to_tree($navigations->toArray(), 0, 'pid'));