xiaogang vor 3 Jahren
Ursprung
Commit
7760b48007
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      app/Admin/Actions/Users/UsersInfoForm.php

+ 1 - 2
app/Admin/Actions/Users/UsersInfoForm.php

xqd xqd
@@ -16,7 +16,6 @@ class UsersInfoForm extends Form implements LazyRenderable
     {
         parent::__construct($data, $key);
         $this->user_info = UserInfoModel::query()->where('user_id',$key)->first();
-        $this->fill($this->user_info );
     }
 
     public function handle(array $input)
@@ -33,7 +32,7 @@ class UsersInfoForm extends Form implements LazyRenderable
     public function form()
     {
 //        $user_info = UserInfoModel::query()->where('user_id',$this->payload['user_id'])->first();
-//        $this->fill($user_info);
+        $this->fill($this->user_info);
         $this->text('user_id',"用户ID")->readOnly();
         $this->text('nickname', '昵称')->required();
         $this->image('avatar', '头像')->saveFullUrl()->uniqueName()->removable(false);