修复最后一页滑到底点上一页不清空的bug

This commit is contained in:
STDquantum 2024-01-14 19:44:42 +08:00
parent 9acd74d459
commit 98d5aef4bb

View File

@ -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) {