mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-08-14 23:20:25 +02:00
Add files via upload
This commit is contained in:
@@ -6699,6 +6699,8 @@ function changeConversationsPageSize() {
|
|||||||
const sel = document.getElementById('conversations-page-size-pagination');
|
const sel = document.getElementById('conversations-page-size-pagination');
|
||||||
const newSize = sel ? parseInt(sel.value, 10) : 50;
|
const newSize = sel ? parseInt(sel.value, 10) : 50;
|
||||||
if (![20, 50, 100].includes(newSize)) return;
|
if (![20, 50, 100].includes(newSize)) return;
|
||||||
|
// 重建 DOM 后浏览器可能异步触发 change,值未变时不应重置页码
|
||||||
|
if (newSize === conversationsPagination.pageSize) return;
|
||||||
try {
|
try {
|
||||||
localStorage.setItem(CONVERSATIONS_PAGE_SIZE_KEY, String(newSize));
|
localStorage.setItem(CONVERSATIONS_PAGE_SIZE_KEY, String(newSize));
|
||||||
} catch (e) { /* ignore */ }
|
} catch (e) { /* ignore */ }
|
||||||
|
|||||||
Reference in New Issue
Block a user