import { notFound } from "next/navigation"; import type { Metadata } from "next"; import { getSimpleContentPageBySlug } from "@/services/legal.service"; export async function generateMetadata(): Promise { const page = await getSimpleContentPageBySlug("privacy-policy").catch(() => null); return { title: page?.title ?? "隐私政策" }; } export default async function PrivacyPolicyPage() { const page = await getSimpleContentPageBySlug("privacy-policy").catch(() => null); if (!page) { notFound(); } return (

{page.title}

{/* page.body 为 Wagtail RichTextField 渲染出的 HTML,内容仅由后台编辑人员维护,非用户输入,可信任直接渲染 */}
); }