We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 485bde3 commit 6f26e3dCopy full SHA for 6f26e3d
src/pages/article/index.tsx
@@ -112,7 +112,7 @@ const Article = (data) => {
112
// 内容高度,180 是移动端顶部内容,318 是移动端名称图片内容,80 是 PC 端顶部内容,226 是 PC 端名称图片内容
113
const contentHeight = mobile ? (document.getElementById('articleContent')?.offsetHeight + 180 + 318) : (document.getElementById('articleContent')?.offsetHeight + 80 + 226)
114
115
- if (hasMore && (scrollTop + windowHeight >= contentHeight)) {
+ if (hasMore && (scrollTop + windowHeight + 5 >= contentHeight)) {
116
console.log('下一页')
117
handleNext()
118
}
0 commit comments