diff --git a/src/app/friend/page.tsx b/src/app/friend/page.tsx deleted file mode 100644 index e08c5ec..0000000 --- a/src/app/friend/page.tsx +++ /dev/null @@ -1,6 +0,0 @@ - -const About = () => { - return
friend
-} - -export default About; \ No newline at end of file diff --git a/src/components/AuthorCard.tsx b/src/components/AuthorCard.tsx index de363d6..c569baf 100644 --- a/src/components/AuthorCard.tsx +++ b/src/components/AuthorCard.tsx @@ -1,6 +1,14 @@ +import { axios } from '@/service'; import Image from 'next/image'; +import useSWR from 'swr'; const AuthorCard = () => { + const { data = {} } = useSWR(`/site/setting`, (url) => { + return axios.get(url).then((res) => res.data); + }); + + console.log('data :>> ', data); + return (