xiaogang 3 年之前
父節點
當前提交
69b061c0f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Admin/Actions/Users/SetUserInfo.php

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

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