From 92278932ef4656c688bc43fa2e95a6b60d27f134 Mon Sep 17 00:00:00 2001 From: Yi <32430186+yilozt@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:42:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=98=BE=E7=A4=BA=E5=8E=9F=E6=96=87?= =?UTF-8?q?=E6=97=B6=E4=BD=BF=E7=94=A8=20.whitespace-pre-wrap=20(#779)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 显示 ChatGPT 输出的原文时保留空格和换行 --- src/views/chat/components/Message/Text.vue | 2 +- src/views/chat/components/Message/style.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/chat/components/Message/Text.vue b/src/views/chat/components/Message/Text.vue index 61a11db..0c46a0c 100644 --- a/src/views/chat/components/Message/Text.vue +++ b/src/views/chat/components/Message/Text.vue @@ -72,7 +72,7 @@ defineExpose({ textRef })
-
+
diff --git a/src/views/chat/components/Message/style.less b/src/views/chat/components/Message/style.less index b7fa8b8..0b2bbf8 100644 --- a/src/views/chat/components/Message/style.less +++ b/src/views/chat/components/Message/style.less @@ -62,7 +62,7 @@ html.dark { .message-reply { - .raw-text { + .whitespace-pre-wrap { white-space: pre-wrap; color: var(--n-text-color); }