RichardSpace369 il y a 3 ans
Parent
commit
ad35e247d1
2 fichiers modifiés avec 5 ajouts et 2 suppressions
  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,
     params: getListParams,
     pagination,
     pagination,
     run: requestList,
     run: requestList,
-  } = useAntdTable(() => {
+  } = useAntdTable((params) => {
     return {
     return {
       url: '/v1/organization/user_list',
       url: '/v1/organization/user_list',
       params: {
       params: {
         organization_code: routeParams.id,
         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(
   const { tableProps, error, params, pagination, run } = useAntdTable(
     (params) => ({
     (params) => ({
       url: '/v1/log/list',
       url: '/v1/log/list',
-      params,
+      params: {
+        page: params.current,
+      },
     }),
     }),
     {
     {
       defaultPageSize: 10,
       defaultPageSize: 10,