RichardSpace369 3 år sedan
förälder
incheckning
ad35e247d1
2 ändrade filer med 5 tillägg och 2 borttagningar
  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,