From 4fb9d5f60e80618fc2d0e8e06c9cdb32e72a8ade Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 8 Sep 2026 10:50:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E4=B8=8A=E6=BB=91?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=9B=B4=E6=97=A9=E6=B6=88=E6=81=AF=E6=97=B6?= =?UTF-8?q?=E5=BC=B9=E8=BD=BB=E6=8F=90=E7=A4=BA=EF=BC=8C=E7=BF=BB=E5=88=B0?= =?UTF-8?q?=E6=9C=80=E6=97=A9=E6=97=B6=E6=8F=90=E7=A4=BA=E5=B7=B2=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=85=A8=E9=83=A8=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/public/index.html b/app/server/public/index.html index 92c817a..df1e8cc 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -827,6 +827,7 @@ async function loadOlderMessages() { if (chatLoadingMore || state.view !== 'chat' || !state.sessionId || !state.chatHasMore) return; chatLoadingMore = true; + toast('正在加载更早消息...'); // 轻提示:拉取期间可见,toast 复用同一元素不会叠加 const id = state.sessionId; const box = $('chat-view'); try { @@ -852,6 +853,7 @@ state.chatHasMore = !!detail.has_more; if (detail.oldest_id) state.chatOldestId = detail.oldest_id; state.chatLoadedCount += (detail.messages || []).length; + if (!state.chatHasMore) toast('已加载全部历史消息'); // 翻到最早一页时把进行中提示换成终点提示 // 旧页太短导致补完后仍贴在触发区:继续拉下一页,避免卡在顶部要再动一下才加载 if (box.scrollTop <= CHAT_TOP_TRIGGER && state.chatHasMore) { chatLoadingMore = false;