Skip to content

Commit

Permalink
组件升级
Browse files Browse the repository at this point in the history
  • Loading branch information
imnpc committed Feb 23, 2023
1 parent 8d87f4b commit 06d28b0
Show file tree
Hide file tree
Showing 6 changed files with 497 additions and 249 deletions.
12 changes: 6 additions & 6 deletions app/Admin/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ protected function form()

// 保存前回调 设置未填写参数的默认值
$form->saving(function (Form $form) {
if (empty($form->nickname)) {
$form->nickname = $form->mobile;
}
if (empty($form->name)) {
$form->name = $form->mobile;
}
// if (empty($form->nickname)) {
// $form->nickname = $form->mobile;
// }
// if (empty($form->name)) {
// $form->name = $form->mobile;
// }
// 密码修改
if (empty($form->input('password'))) {
$form->input('password', $form->model()->password);
Expand Down
Loading

0 comments on commit 06d28b0

Please sign in to comment.