Browse Source

在NameRule中增加一个存放文本值的字段

kely 10 months ago
parent
commit
3037f031d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Resources/API/CustomFieldResource.php

+ 1 - 1
app/Http/Resources/API/CustomFieldResource.php

@@ -20,7 +20,7 @@ class CustomFieldResource extends JsonResource
             'group' => $this->group,
             'label' => $this->label,
             'options' => $this->options,
-            'inputs' => json_decode($this->inputs),
+            'inputs' => $this->inputs,
             'type' => $this->type,
             'required' => $this->required,
             'remark' => $this->remark,