import useSWR, { useSWRInfinite } from 'swr'; import { getIndustryUrl, } from '@/services/api'; import { fetcher, useCommonSwr } from './fetcher'; //获取行业列表 export const useIndustry = () => { const url = getIndustryUrl(); return useCommonSwr(url); }