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