Skip to content

Commit 8753bf6

Browse files
wzhihjxlwqq
authored andcommitted
修改json默认值
修改初始化的json值为对象,而非数组,与json editor同步
1 parent 81a1381 commit 8753bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Editor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function render()
2727
if (!is_string($json)) {
2828
$json = json_encode($json);
2929
} else {
30-
$json = json_encode(json_decode($json,true)); //兼容json里有类似</p>格式,首次初始化显示会丢失的问题
30+
$json = json_encode(json_decode($json)); //兼容json里有类似</p>格式,首次初始化显示会丢失的问题
3131
}
3232
$this->value = $json;
3333

0 commit comments

Comments
 (0)