import {Button} from "antd" import {ArrowRightOutlined} from "@ant-design/icons" import MainTitle from "@/components/MainTitle" import Image from "next/image" import PaginationClient from "@/components/PaginationClient" import {serverGet} from "@/utils/request" import {removeHTMLTags} from "@/utils/removeHTMLTags" import AnimatedSection from "@/components/AnimatedSection"; export default async function SolutionsPage({ searchParams, }: { searchParams: Promise<{ page?: string }> }) { // 等待 searchParams 解析 const params = await searchParams const pageNum = Number.parseInt(params.page || "1", 10) const pageSize = 6 const res = await serverGet>("/webSite/getSolution", { pageNum: pageNum, pageSize: pageSize, },{ next: { revalidate: 180 }, cache: "force-cache" }) const solutionsData = res.data.records return ( <>
{"banner"}
{solutionsData.map((solution, index) => (
{/* 内容容器 */}

{solution.programName}

{solution.releaseTime}

{removeHTMLTags(solution.programDetails)}

{/* 按钮区域 */}
{/* 装饰性元素 */}
))}
) }