修复最后一页滑到底点上一页不清空的bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user