RichardSpace369 3 anos atrás
pai
commit
ad35e247d1
2 arquivos alterados com 5 adições e 2 exclusões
  1. 2 1
      src/page/adminperson/index.tsx
  2. 3 1
      src/page/log/index.tsx

+ 2 - 1
src/page/adminperson/index.tsx

@@ -109,11 +109,12 @@ const adminperson: React.FC<Iprops> = ({ title, match: { params: routeParams } }
     params: getListParams,
     pagination,
     run: requestList,
-  } = useAntdTable(() => {
+  } = useAntdTable((params) => {
     return {
       url: '/v1/organization/user_list',
       params: {
         organization_code: routeParams.id,
+        page: params.current,
       },
     }
   }, {})

+ 3 - 1
src/page/log/index.tsx

@@ -25,7 +25,9 @@ const logPage: React.FC<Iprops> = ({ title }) => {
   const { tableProps, error, params, pagination, run } = useAntdTable(
     (params) => ({
       url: '/v1/log/list',
-      params,
+      params: {
+        page: params.current,
+      },
     }),
     {
       defaultPageSize: 10,