fix:修改菜单排序

This commit is contained in:
JaguarJack
2024-04-23 17:47:49 +08:00
parent 1d694a81c5
commit 72c68507e5
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class PermissionsController extends Controller
}
return $this->model->setBeforeGetList(function ($query) {
return $query->with('actions')->whereIn('type', [MenuType::Top->value(), MenuType::Menu->value()]);
return $query->with('actions')->whereIn('type', [MenuType::Top->value(), MenuType::Menu->value()])->orderByDesc('sort');
})->getList();
}