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 = ` -