diff --git a/src/components/Header/HeaderAvatar.tsx b/src/components/Header/HeaderAvatar.tsx
index c22ea9a..39e3b3f 100644
--- a/src/components/Header/HeaderAvatar.tsx
+++ b/src/components/Header/HeaderAvatar.tsx
@@ -5,7 +5,7 @@ import { useShallow } from 'zustand/react/shallow';
import { Avatar } from '@/components';
import useUserStore from '@/store/user';
-export default function HeaderAvatar({ className }: { className: string }) {
+export default function HeaderAvatar({ className }: { className?: string }) {
const { userInfo, setShowLogin } = useUserStore(
useShallow((state) => ({
userInfo: state.userInfo,
@@ -17,7 +17,6 @@ export default function HeaderAvatar({ className }: { className: string }) {
{/* 已登录 展示头像 */}
{!!userInfo.id &&
}
-
{/* 未登录 展示按钮 */}
{!userInfo.id && (