This commit is contained in:
quantulr
2023-11-01 17:27:06 +08:00
parent 7e465da9d2
commit 1a22404f19
87 changed files with 1604 additions and 196 deletions

View File

@ -1,5 +1,6 @@
import { articleDetail } from "@/app/api/articles";
import ArticleContent from "@/app/components/ArticleContent";
import ArticleRender from "@/app/components/ArticleRender";
import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb";
export default async function Article({
params,
@ -9,5 +10,15 @@ export default async function Article({
};
}) {
const data = await articleDetail({ id: params.articleId });
return <ArticleContent article={data} />;
return (
<ArticleWithBreadcrumb
breadcrumb={[
{ title: "首页", href: "/" },
{ title: "公告通知", href: "/announcements/pages/1" },
{ title: data.title, href: `/announcements/${data.id}` },
]}
>
<ArticleRender article={data} />
</ArticleWithBreadcrumb>
);
}