xiaogang 3 years ago
parent
commit
73951dfaa8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Admin/Actions/Users/SetUserInfo.php

+ 1 - 1
app/Admin/Actions/Users/SetUserInfo.php

@@ -58,7 +58,7 @@ class SetUserInfo extends RowAction
 
 
     public function render()
     public function render()
     {
     {
-        $form = UsersInfoForm::make(new UserInfoModel())->payload(['user_id'=>$this->getKey()]);
+        $form = UsersInfoForm::make(UserInfoModel::query()->where('user_id',$this->getKey())->first());
         return Modal::make()
         return Modal::make()
             ->lg()
             ->lg()
             ->title($this->title)
             ->title($this->title)