Skip to content

Commit

Permalink
fix: do not format json code
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Jul 17, 2024
1 parent d0b203f commit f25b76e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/CodeEditor/src/CodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f25b76e

Please sign in to comment.