Browse Source

修复 admin_javascript_json 函数会自动空滤数组空值问题

jqh 4 years ago
parent
commit
cc2b7e8bf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Support/JavaScript.php

+ 1 - 1
src/Support/JavaScript.php

@@ -77,7 +77,7 @@ class JavaScript
     public static function format($value)
     {
         if (is_array($value) || is_object($value)) {
-            $value = json_encode(Helper::array($value));
+            $value = json_encode(Helper::array($value, false));
         }
 
         foreach (static::all() as $id => $script) {