Skip to content

Commit

Permalink
feat: 暂存
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchunyang123 committed Jul 2, 2024
1 parent 8901d30 commit 56fb6c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/app/friend/page.tsx

This file was deleted.

8 changes: 8 additions & 0 deletions src/components/AuthorCard.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div
className="w-full p-4 rounded-xl flex flex-col"
Expand Down
4 changes: 0 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const LINK_CONFIG = [
label: '相册',
href: '/photo',
},
{
label: '友链',
href: '/friend',
},
{
label: '关于',
href: '/about',
Expand Down

0 comments on commit 56fb6c2

Please sign in to comment.