fix(ui): 优化搜索结果滚动加载触发距离 150px → 100px (M-UI-06)

This commit is contained in:
alger
2026-03-15 15:13:33 +08:00
parent 292706a821
commit 915f4f8965

View File

@@ -454,7 +454,7 @@ const handleTypeChange = (type: number) => {
const handleScroll = (e: any) => { const handleScroll = (e: any) => {
const { scrollTop, scrollHeight, clientHeight } = e.target; const { scrollTop, scrollHeight, clientHeight } = e.target;
if (scrollTop + clientHeight >= scrollHeight - 150 && !isLoadingMore.value && hasMore.value) { if (scrollTop + clientHeight >= scrollHeight - 100 && !isLoadingMore.value && hasMore.value) {
loadSearch(true); loadSearch(true);
} }
}; };