From cc2b7e8bf9568a5405ad6655ad9acbcc8927b0d8 Mon Sep 17 00:00:00 2001 From: jqh <841324345@qq.com> Date: Tue, 27 Oct 2020 09:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20admin=5Fjavascript=5Fjson?= =?UTF-8?q?=20=E5=87=BD=E6=95=B0=E4=BC=9A=E8=87=AA=E5=8A=A8=E7=A9=BA?= =?UTF-8?q?=E6=BB=A4=E6=95=B0=E7=BB=84=E7=A9=BA=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Support/JavaScript.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/JavaScript.php b/src/Support/JavaScript.php index 7966e5e35..7fe4a1448 100644 --- a/src/Support/JavaScript.php +++ b/src/Support/JavaScript.php @@ -77,7 +77,7 @@ public static function delete(string $id) 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) {