xiaogang 3 年之前
父節點
當前提交
e1d7cc541c
共有 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(UserInfoModel::query()->where('user_id')->first());
+        $form = UsersInfoForm::make(UserInfoModel::query()->where('user_id',$this->getKey())->first());
         return Modal::make()
             ->lg()
             ->title($this->title)