第65批修复:用户管理搜索清空时立即清除旧结果
关键词清空后,页面仍停留在上次搜索结果(直到新请求返回)。 在doLazyLoadSearch发起新请求前,立即清空容器显示加载中。
This commit is contained in:
@@ -1582,6 +1582,12 @@ function doLazyLoadSearch() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ★ 立即清空旧结果,避免关键词清空后页面仍停留在上次搜索结果
|
||||||
|
const container = document.getElementById('userLazyContainer');
|
||||||
|
if (container) container.innerHTML = '<div class="empty">加载中...</div>';
|
||||||
|
const loadMore = document.getElementById('userLazyLoadMore');
|
||||||
|
if (loadMore) loadMore.style.display = 'none';
|
||||||
|
|
||||||
// 重置分页状态
|
// 重置分页状态
|
||||||
lazyLoadState.currentPage = 1;
|
lazyLoadState.currentPage = 1;
|
||||||
lazyLoadState.totalPages = 1;
|
lazyLoadState.totalPages = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user