mirror of
https://github.com/LC044/WeChatMsg
synced 2024-11-12 20:21:21 +08:00
修复最后一页滑到底点上一页不清空的bug
This commit is contained in:
parent
9acd74d459
commit
98d5aef4bb
@ -1021,10 +1021,11 @@ input {
|
|||||||
function prevPage() {
|
function prevPage() {
|
||||||
if (currentPage > 1) {
|
if (currentPage > 1) {
|
||||||
currentPage--;
|
currentPage--;
|
||||||
|
reachedBottom = false;
|
||||||
renderPage(currentPage);
|
renderPage(currentPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextPage() {
|
function nextPage() {
|
||||||
const totalPages = Math.ceil(chatMessages.length / itemsPerPage);
|
const totalPages = Math.ceil(chatMessages.length / itemsPerPage);
|
||||||
if (currentPage < totalPages) {
|
if (currentPage < totalPages) {
|
||||||
|
Loading…
Reference in New Issue
Block a user