【功能完善】修复 jsonEditor 编辑回显不生效的问题

This commit is contained in:
puhui999
2025-03-28 15:05:13 +08:00
parent bff2327eba
commit fe905721bd
2 changed files with 14 additions and 29 deletions

View File

@@ -41,9 +41,9 @@ const initJsonEditor = () => {
navigationBar: props.showNavigationBar,
statusBar: props.showStatusBar,
mainMenuBar: props.showMainMenuBar,
onChangeJSON: (json: any) => {
jsonObj.value = json
emits('change', json)
onChange: () => {
jsonObj.value = jsonEditor?.get()
emits('change', jsonEditor?.get())
},
onValidationError: (errors: any) => {
emits('error', errors)