mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 04:55:06 +08:00
Update AbstractController.php
设置filter的select默认值不生效问题
This commit is contained in:
@@ -915,7 +915,6 @@ abstract class AbstractController extends Controller
|
|||||||
])
|
])
|
||||||
&& isset($_form['options'])) {
|
&& isset($_form['options'])) {
|
||||||
$_form['type'] = 'select';
|
$_form['type'] = 'select';
|
||||||
unset($_form['value']);
|
|
||||||
$options_labels = array_column($_form['options'], 'label');
|
$options_labels = array_column($_form['options'], 'label');
|
||||||
if (!isset($_form['props']['selectApi']) && !in_array('全部', $options_labels)) {
|
if (!isset($_form['props']['selectApi']) && !in_array('全部', $options_labels)) {
|
||||||
array_unshift($_form['options'], [
|
array_unshift($_form['options'], [
|
||||||
|
|||||||
Reference in New Issue
Block a user