From 0812a6192ff1977a2632d7cda45d0b5ee8edb980 Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Mon, 27 Apr 2026 11:18:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=99=AE=E9=80=9A=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=90=8E=E4=B8=8D=E5=86=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E4=BD=93=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - showConversationList 简化为直接返回主页 - 主页对话列表正确过滤(只显示没有 agentId 的普通对话) - 添加操作菜单支持(重命名、分享、置顶、删除) - 统一使用全局变量 currentActionConvId --- www/app.js | 279 +++++++++---------------------------------------- www/index.html | 6 +- 2 files changed, 50 insertions(+), 235 deletions(-) diff --git a/www/app.js b/www/app.js index e1fe6f7..f3bcf95 100644 --- a/www/app.js +++ b/www/app.js @@ -494,6 +494,28 @@ function renderChatsPage() { + +
+ @@ -1983,9 +2025,11 @@ function showAgentChatPage() { } // 设置长按事件 +// 全局变量:当前操作的对话ID +let currentActionConvId = null; + function setupLongPressEvents(container) { let longPressTimer = null; - let currentActionConvId = null; container.addEventListener('touchstart', (e) => { const item = e.target.closest('.conversation-item'); @@ -2038,236 +2082,7 @@ function setupLongPressEvents(container) { function showConversationList() { currentConversation = null; - - // 渲染对话列表 - const listHtml = ` -