diff --git a/packages/editor-ui/src/components/CodeEdit.vue b/packages/editor-ui/src/components/CodeEdit.vue index aa07a78180..0478ddae7d 100644 --- a/packages/editor-ui/src/components/CodeEdit.vue +++ b/packages/editor-ui/src/components/CodeEdit.vue @@ -88,6 +88,7 @@ export default mixins( if (!this.$refs.code) return; this.monacoInstance = monaco.editor.create(this.$refs.code as HTMLElement, { + automaticLayout: true, value: this.value, language: this.type === 'code' ? 'javascript' : 'json', tabSize: 2,