xiaogang преди 3 години
родител
ревизия
72cc33e270
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      app/Admin/Actions/Users/UsersInfoForm.php

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

xqd
@@ -42,9 +42,10 @@ class UsersInfoForm extends Form implements LazyRenderable
     public function form()
     {
         $user_info = UserInfoModel::query()->where('user_id',$this->payload['id'])->first();
+        $this->model($user_info);
         $this->text('user_id')->value($this->payload['id'])->readOnly();
-        $this->text('nickname', '昵称')->value($user_info->nickname);
-        $this->image('avatar', '头像')->value($user_info->avatar);
+        $this->text('nickname', '昵称');
+        $this->image('avatar', '头像');
 
     }
 }