index.tsx
396 字节
import hyRequest from '@/service'
import React, { memo, useEffect } from 'react'
import type { FC, ReactNode } from 'react'
interface IProps {
children?: ReactNode
}
const Recommend: FC<IProps> = memo(() => {
useEffect(() => {
hyRequest.get({ url: '/banner' }).then((res) => {
console.log(res, 'banner')
})
}, [])
return <div>Recommend</div>
})
export default Recommend