RichardSpace369 3 vuotta sitten
vanhempi
commit
ad35e247d1
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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,