kphcdr 1 år sedan
förälder
incheckning
816de4826b

+ 1 - 1
app/Modules/Mini/Controllers/PageController.php

@@ -21,7 +21,7 @@ class PageController extends BaseController
     public function filterConfig()
     {
         $params = $this->valid([
-            "type" => "required",
+            "type" => "",
         ]);
         return $this->ok([
             "list" => $this->service->filterConfig($params),

+ 0 - 1
app/Modules/Mini/Services/PageService.php

@@ -108,7 +108,6 @@ class PageService extends BaseService
                 "type" => "attr",
                 "child" => $model->attrs->map(function (SpecAttr $attr) {
                     return [
-                        "id" => $attr->id,
                         "name" => $attr->name,
                     ];
                 }),