From 6b048a1b1c03cf3692090e7de38bdb798bb2235b Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 6 Sep 2021 16:08:52 +0800 Subject: [PATCH] add new line --- src/views/ObjectFieldComponent.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/ObjectFieldComponent.vue b/src/views/ObjectFieldComponent.vue index 26bc29dd..15847c5c 100644 --- a/src/views/ObjectFieldComponent.vue +++ b/src/views/ObjectFieldComponent.vue @@ -56,7 +56,7 @@ - {{ value }} + {{ addNewLine(value) }} @@ -121,6 +121,9 @@ export default { formatTokens(value) { return tokenFormatter(value) }, + addNewLine(value) { + return value.replaceAll('\\n', '\n') + }, }, }