Skip to content

Commit 4b652aa

Browse files
committed
查询移除lay-verify
1 parent 09d4686 commit 4b652aa

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/plugin/admin/app/common/Layui.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -833,15 +833,9 @@ public static function buildForm($table, string $type = 'insert'): Layui
833833
$control = "{$control}Like";
834834
}
835835
}
836-
// 查询移除required
836+
// 查询类型移除lay-verify
837837
if ($type == 'search' && !empty($props['lay-verify'])) {
838-
$verify_items = explode('|', $props['lay-verify']);
839-
foreach ($verify_items as $key => $value) {
840-
if ($value === 'required') {
841-
unset($verify_items[$key]);
842-
}
843-
}
844-
$props['lay-verify'] = implode('|', $verify_items);
838+
$props['lay-verify'] = '';
845839
}
846840

847841
$options = [

0 commit comments

Comments
 (0)