From 94411fa318e4fc4cdc3c8e389bbe75878027b624 Mon Sep 17 00:00:00 2001 From: walkor Date: Sun, 25 Sep 2022 19:58:34 +0800 Subject: [PATCH] fix --- src/plugin/admin/app/controller/Crud.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugin/admin/app/controller/Crud.php b/src/plugin/admin/app/controller/Crud.php index 9c667f2..ee51557 100644 --- a/src/plugin/admin/app/controller/Crud.php +++ b/src/plugin/admin/app/controller/Crud.php @@ -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);