From 8287be10eae1de4907de03a541cb72c111545321 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Tue, 28 Apr 2026 10:49:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=BA=E8=83=BD=E4=BD=93=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=A0=87=E9=A2=98=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?+=E5=8E=86=E5=8F=B2=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/app.js | 6 +++--- www/style.css | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/www/app.js b/www/app.js index 15da2bb..8b8d55a 100644 --- a/www/app.js +++ b/www/app.js @@ -792,7 +792,7 @@ function renderAgentsPage() { ${conv.title}
- ${conv.agent ? conv.agent.name : '未知智能体'} + ${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'} ${formatTime(conv.updatedAt)}
@@ -3006,7 +3006,7 @@ function showAgentHistoryPage() { ${conv.title}
- ${conv.agent ? conv.agent.name : '未知智能体'} + ${conv.agent ? getCategoryLabel(conv.agent.category) : '未知'} ${formatTime(conv.updatedAt)}
@@ -3087,7 +3087,7 @@ async function openAgent(agentId) { // 创建新对话并设置智能体 const newConv = { id: backendId || Date.now().toString(), - title: currentAgent.name, + title: '新对话', // 和普通对话一样,初始标题为"新对话",后续自动生成 messages: [], agentId: agentId, createdAt: Date.now(), diff --git a/www/style.css b/www/style.css index 26f32a3..ba81b2f 100644 --- a/www/style.css +++ b/www/style.css @@ -1730,7 +1730,7 @@ body { color: var(--primary); } -.recent-agent-agent-name { +.recent-agent-category { font-size: 12px; color: var(--primary); background: rgba(102, 126, 234, 0.1); @@ -1807,7 +1807,7 @@ body { color: var(--primary); } -.agent-history-agent { +.agent-history-category { font-size: 12px; color: var(--primary); background: rgba(102, 126, 234, 0.1);