diff --git a/src/components/CodeEditor/src/CodeEditor.vue b/src/components/CodeEditor/src/CodeEditor.vue index be68fe3d..82819c83 100644 --- a/src/components/CodeEditor/src/CodeEditor.vue +++ b/src/components/CodeEditor/src/CodeEditor.vue @@ -63,9 +63,9 @@ } function handleValueChange(v: string) { - if (props.mode == MODE.JSON) { - v = v.replace(/(\r\n|\n|\r)/gm, ''); - } + // if (props.mode == MODE.JSON) { + // v = v.replace(/(\r\n|\n|\r)/gm, ''); + // } emit('update:value', v); emit('change', v); }