import { useList } from '@/common/hooks/use-request'; import { fetchDeviceList } from '@/services/device'; export default (spaceId: string, size: number) => { // const { id } = useParams(); const { allIds = {}, total, loading, loaded } = useList( fetchDeviceList, { spaceId, spaceFilter: 0, page: 1, size }, [spaceId], ); return { allIds, total, loading, loaded }; };