diff --git a/magic-editor/src/console/src/components/editor/magic-history.vue b/magic-editor/src/console/src/components/editor/magic-history.vue index 46062942..361e491e 100644 --- a/magic-editor/src/console/src/components/editor/magic-history.vue +++ b/magic-editor/src/console/src/components/editor/magic-history.vue @@ -44,6 +44,7 @@ export default { folding: false, lineDecorationsWidth: 20, fixedOverflowWidgets: false, + renderWhitespace: 'none', fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true diff --git a/magic-editor/src/console/src/components/editor/magic-script-editor.vue b/magic-editor/src/console/src/components/editor/magic-script-editor.vue index 50772b5f..766efb98 100644 --- a/magic-editor/src/console/src/components/editor/magic-script-editor.vue +++ b/magic-editor/src/console/src/components/editor/magic-script-editor.vue @@ -117,6 +117,7 @@ export default { fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true, + renderWhitespace: 'none', // 自动调整大小 automaticLayout: true }) diff --git a/magic-editor/src/console/src/components/layout/magic-request.vue b/magic-editor/src/console/src/components/layout/magic-request.vue index d45f2619..44043469 100644 --- a/magic-editor/src/console/src/components/layout/magic-request.vue +++ b/magic-editor/src/console/src/components/layout/magic-request.vue @@ -353,6 +353,7 @@ fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true, + renderWhitespace: 'none', theme: store.get('skin') || 'default', value: formatJson(this.info.requestBody) || '{\r\n\t\r\n}' }) diff --git a/magic-editor/src/console/src/components/layout/magic-run.vue b/magic-editor/src/console/src/components/layout/magic-run.vue index 9fd8d82e..941ab610 100644 --- a/magic-editor/src/console/src/components/layout/magic-run.vue +++ b/magic-editor/src/console/src/components/layout/magic-run.vue @@ -114,6 +114,7 @@ export default { fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true, value: this.info.responseBody || '', + renderWhitespace: 'none', theme: store.get('skin') || 'default' }) bus.$on('update-window-size', () => this.updateSize()) diff --git a/magic-editor/src/console/src/components/layout/magic-search.vue b/magic-editor/src/console/src/components/layout/magic-search.vue index 611a4329..76ba5546 100644 --- a/magic-editor/src/console/src/components/layout/magic-search.vue +++ b/magic-editor/src/console/src/components/layout/magic-search.vue @@ -79,6 +79,7 @@ export default { readOnly: true, fontLigatures: true, scrollBeyondLastLine: false, + renderWhitespace: 'none', fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, theme: store.get('skin') || 'default' diff --git a/magic-editor/src/console/src/components/resources/magic-datasource-list.vue b/magic-editor/src/console/src/components/resources/magic-datasource-list.vue index 6db39edd..43bd907b 100644 --- a/magic-editor/src/console/src/components/resources/magic-datasource-list.vue +++ b/magic-editor/src/console/src/components/resources/magic-datasource-list.vue @@ -316,6 +316,7 @@ export default { fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true, + renderWhitespace: 'none', theme: store.get('skin') || 'default', value: formatJson(temp) || '{\r\n\t\r\n}' })