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