修改排序

This commit is contained in:
liaofei 2023-04-10 10:55:25 +08:00
parent 3ce0581e36
commit a45ab355c3

View File

@ -82,7 +82,7 @@ class SystemRouteServices extends BaseServices
public function getTreeList(array $where, string $appName = 'adminapi')
{
$list = app()->make(SystemRouteCateServices::class)
->selectList(['app_name' => $appName], '*', 0, 0, 'add_time desc', [
->selectList(['app_name' => $appName], '*', 0, 0, 'id asc', [
'children' => function ($query) use ($where) {
$query->where('app_name', $where['app_name'])
->when('' !== $where['name_like'], function ($q) use ($where) {