This commit is contained in:
walkor 2022-09-25 19:58:34 +08:00
parent 5e4288f05e
commit 94411fa318

View File

@ -351,9 +351,8 @@ trait Crud
$formatted_items = [];
foreach ($items as $item) {
$formatted_items[] = [
'title' => $item->title ?? $item->name ?? $item->id,
'value' => $item->id,
'key' => $item->id,
'label' => $item->title ?? $item->name ?? $item->id,
'value' => $item->id
];
}
return $this->json(0, 'ok', $formatted_items);