This commit is contained in:
ditiqi 2025-03-02 21:25:28 +08:00
parent 2c03a2eac0
commit ebff6eb647
2 changed files with 7 additions and 2 deletions

View File

@ -26,13 +26,13 @@ export function MainFooter() {
<div className="flex items-center justify-center space-x-2">
<PhoneOutlined className="text-gray-400" />
<span className="text-gray-300 text-xs">
628118
628532
</span>
</div>
<div className="flex items-center justify-center space-x-2">
<MailOutlined className="text-gray-400" />
<span className="text-gray-300 text-xs">
gcsjs6@tx3l.nb.kj
ruanjian1@tx3l.nb.kj
</span>
</div>
</div>

View File

@ -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 (
<Card