perf: Assistant chat ui

This commit is contained in:
fit2cloud-chenyw
2025-07-14 17:20:09 +08:00
parent bb5c04674e
commit 69d2c42f73
4 changed files with 26 additions and 9 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ defineProps<{
<div class="chat-block">
<slot>
<div class="chat-block-content">
<div v-dompurify-html="msg?.content"></div>
<!-- <div v-dompurify-html="msg?.content"></div> -->
<div v-if="msg?.role === 'user'" v-html="msg.content"></div>
<div v-else v-dompurify-html="msg?.content"></div>
</div>
</slot>
</div>
+1
View File
@@ -833,6 +833,7 @@ defineExpose({
.chat-record-list {
padding: 0 0 20px 0;
background: rgba(224, 224, 226, 0.29);
}
.chat-footer {