xiaogang há 4 anos atrás
pai
commit
7c864ccc4c
1 ficheiros alterados com 7 adições e 1 exclusões
  1. 7 1
      app/Admin/Actions/Users/UsersInfoForm.php

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

xqd xqd
@@ -15,7 +15,6 @@ class UsersInfoForm extends Form implements LazyRenderable
     public function __construct($data = [], $key = null)
     {
         parent::__construct($data, $key);
-        dd($this->payload['user_id']);
     }
 
     public function handle(array $input)
@@ -31,6 +30,13 @@ class UsersInfoForm extends Form implements LazyRenderable
 
     public function form()
     {
+        if(request()->ajax()){
+            dd(1111);
+        }else{
+            dd(222222);
+        }
+
+
         $user_info = UserInfoModel::query()->where('user_id',$this->payload['user_id'])->first();
         $this->fill($user_info);
         $this->text('user_id',"用户ID")->readOnly();