显示 ChatGPT 输出的原文时保留空格和换行
@ -72,7 +72,7 @@ defineExpose({ textRef })
<div ref="textRef" class="leading-relaxed break-words">
<div v-if="!inversion">
<div v-if="!asRawText" class="markdown-body" v-html="text" />
<div v-else class="raw-text" v-text="text" />
<div v-else class="whitespace-pre-wrap" v-text="text" />
</div>
@ -62,7 +62,7 @@
html.dark {
.message-reply {
.raw-text {
.whitespace-pre-wrap {
white-space: pre-wrap;
color: var(--n-text-color);
}