From a56bad11f133c84a0d9cf43f505a1496da380263 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Tue, 28 Apr 2026 09:13:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=9C=A8=E5=AF=B9=E8=AF=9D=E7=95=8C=E9=9D=A2=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www/app.js b/www/app.js index 5f8c110..15da2bb 100644 --- a/www/app.js +++ b/www/app.js @@ -4541,7 +4541,11 @@ function renderMessages() { messagesDiv.innerHTML = currentConversation.messages.map((msg, index) => { const isUser = msg.role === 'user'; - const avatar = isUser ? '👤' : '🤖'; + // 用户头像使用实际头像,AI头像使用智能体头像或默认 + const avatar = isUser + ? (currentUser?.avatar || '👤') + : (currentAgent?.avatar || '🤖'); + const avatarHtml = isUser ? renderAvatar(avatar) : avatar; // 处理消息内容(支持图片) let contentHtml = ''; @@ -4616,7 +4620,7 @@ function renderMessages() { return `
-
${avatar}
+
${avatarHtml}
${searchHtml} ${thinkingHtml}