Commit 506db69b authored by Bill's avatar Bill

fix: 消息列表页分页问题

parent 49c86d0f
......@@ -37,7 +37,9 @@ const Message: React.FC<{}> = () => {
}
}
const handlePaginationChange = (page, pageSize) => {
const handlePaginationChange = (page: number, pageSize: number | undefined) => {
//@ts-ignore
setPagation((state) => ({...state, current: page, pageSize: pageSize}))
getList({page, pageSize})
.then((data) => {
setDataSource(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment