diff --git a/src/views/editor/index.vue b/src/views/editor/index.vue index c792fcae..0b86ef30 100644 --- a/src/views/editor/index.vue +++ b/src/views/editor/index.vue @@ -152,6 +152,7 @@ const executeQueryAction = async (position: { column: number; lineNumber: number } try { + displayJsonEditor(''); if (!established.value) { message.error(lang.t('editor.establishedRequired'), { closable: true, @@ -204,6 +205,7 @@ const autoIndentAction = (editor: monaco.editor.IStandaloneCodeEditor, position: // @ts-ignore inverseEditOperations => [], ); + editor.setPosition({ lineNumber: startLineNumber + 1, column: 1 }); } catch (err) { message.error(lang.t('editor.invalidJson'), { closable: true,