From 0dd64dec84f27290abecbfb8679548b73ba2ec9b Mon Sep 17 00:00:00 2001 From: ypsdf1 Date: Sun, 1 Nov 2026 21:07:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC65=E6=89=B9=E4=BF=AE=E5=A4=8D=EF=BC=9A?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E6=90=9C=E7=B4=A2=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E7=AB=8B=E5=8D=B3=E6=B8=85=E9=99=A4=E6=97=A7?= =?UTF-8?q?=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关键词清空后,页面仍停留在上次搜索结果(直到新请求返回)。 在doLazyLoadSearch发起新请求前,立即清空容器显示加载中。 --- admin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin.php b/admin.php index 9f02749..8cbe2a7 100644 --- a/admin.php +++ b/admin.php @@ -1582,6 +1582,12 @@ function doLazyLoadSearch() { return; } + // ★ 立即清空旧结果,避免关键词清空后页面仍停留在上次搜索结果 + const container = document.getElementById('userLazyContainer'); + if (container) container.innerHTML = '
加载中...
'; + const loadMore = document.getElementById('userLazyLoadMore'); + if (loadMore) loadMore.style.display = 'none'; + // 重置分页状态 lazyLoadState.currentPage = 1; lazyLoadState.totalPages = 1;