diff --git a/apps/web/src/app/main/layout/MainFooter.tsx b/apps/web/src/app/main/layout/MainFooter.tsx index b232752..eb4ef75 100755 --- a/apps/web/src/app/main/layout/MainFooter.tsx +++ b/apps/web/src/app/main/layout/MainFooter.tsx @@ -26,13 +26,13 @@ export function MainFooter() {
- 628118 + 628532
- gcsjs6@tx3l.nb.kj + ruanjian1@tx3l.nb.kj
diff --git a/apps/web/src/components/models/post/PostCard.tsx b/apps/web/src/components/models/post/PostCard.tsx index eb9f51e..6aa4b03 100644 --- a/apps/web/src/components/models/post/PostCard.tsx +++ b/apps/web/src/components/models/post/PostCard.tsx @@ -13,6 +13,11 @@ const { Title } = Typography; export default function PostCard({ post, onClick }: PostCardProps) { const handleClick = (post: PostDto) => { onClick?.(post); + // 添加平滑滚动到顶部 + window.scrollTo({ + top: 0, + behavior: "smooth", // 关键参数,启用平滑滚动 + }); }; return (