add
This commit is contained in:
parent
2c03a2eac0
commit
ebff6eb647
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue