This commit is contained in:
wood 2023-11-18 05:40:01 +08:00
parent 172e8c8235
commit ba269a3c61

View File

@ -118,6 +118,7 @@ const ChannelsTable = () => {
setLoading(false); setLoading(false);
}; };
// 翻页
const onPaginationChange = (e, { activePage }) => { const onPaginationChange = (e, { activePage }) => {
(async () => { (async () => {
if (activePage === Math.ceil(channels.length / ITEMS_PER_PAGE) + 1) { if (activePage === Math.ceil(channels.length / ITEMS_PER_PAGE) + 1) {
@ -125,6 +126,7 @@ const ChannelsTable = () => {
await loadChannels(activePage - 1); await loadChannels(activePage - 1);
} }
setActivePage(activePage); setActivePage(activePage);
await refresh();
})(); })();
}; };