fix:优化触底逻辑

This commit is contained in:
jiangrui
2025-03-07 23:24:28 +08:00
parent eedd68d137
commit 26381fa6b0

View File

@@ -230,7 +230,7 @@ const doScroll = () => {
const appElement = document.querySelector("#app") as HTMLElement; const appElement = document.querySelector("#app") as HTMLElement;
if (appElement) { if (appElement) {
const { scrollHeight, scrollTop, clientHeight } = appElement; const { scrollHeight, scrollTop, clientHeight } = appElement;
if (scrollHeight - (clientHeight + scrollTop) <= 10) { if (scrollHeight - (clientHeight + scrollTop) <= 0) {
throttledLoadMore(currentTab.value); throttledLoadMore(currentTab.value);
} }
} }