Browse Source

tag默认保存为array类型

jqh 4 years ago
parent
commit
1fdabcb70f
1 changed files with 1 additions and 7 deletions
  1. 1 7
      src/Form/Field/Tags.php

+ 1 - 7
src/Form/Field/Tags.php

@@ -131,13 +131,7 @@ class Tags extends Field
             return $value;
         }
 
-        $value = array_filter($value, 'strlen');
-
-        if ($value && ! Arr::isAssoc($value)) {
-            $value = implode(',', $value);
-        }
-
-        return $value;
+        return array_filter($value, 'strlen');
     }
 
     /**