export const RActionList = () => { const { total, isLoading } = useListContext(); const { permissions } = usePermissions(); console.log(useListContext(),usePermissions(),"permissions is") return (<List resource="t_geyao_person" actions={<ListActions />}> <Datagrid> <TextField source='id'></TextField> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> </Datagrid> </List>) }