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">
|
<div className="flex items-center justify-center space-x-2">
|
||||||
<PhoneOutlined className="text-gray-400" />
|
<PhoneOutlined className="text-gray-400" />
|
||||||
<span className="text-gray-300 text-xs">
|
<span className="text-gray-300 text-xs">
|
||||||
628118
|
628532
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-center space-x-2">
|
<div className="flex items-center justify-center space-x-2">
|
||||||
<MailOutlined className="text-gray-400" />
|
<MailOutlined className="text-gray-400" />
|
||||||
<span className="text-gray-300 text-xs">
|
<span className="text-gray-300 text-xs">
|
||||||
gcsjs6@tx3l.nb.kj
|
ruanjian1@tx3l.nb.kj
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,6 +13,11 @@ const { Title } = Typography;
|
||||||
export default function PostCard({ post, onClick }: PostCardProps) {
|
export default function PostCard({ post, onClick }: PostCardProps) {
|
||||||
const handleClick = (post: PostDto) => {
|
const handleClick = (post: PostDto) => {
|
||||||
onClick?.(post);
|
onClick?.(post);
|
||||||
|
// 添加平滑滚动到顶部
|
||||||
|
window.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: "smooth", // 关键参数,启用平滑滚动
|
||||||
|
});
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
|
|
Loading…
Reference in New Issue