update
This commit is contained in:
@ -1,7 +1,24 @@
|
||||
import React from "react";
|
||||
import { articleDetail } from "@/app/api/articles";
|
||||
import ArticleRender from "@/app/components/ArticleRender";
|
||||
import ArticleWithBreadcrumb from "@/app/components/ArticleWithBreadcrumb";
|
||||
|
||||
const ResearchProgress = () => {
|
||||
return <div></div>;
|
||||
};
|
||||
|
||||
export default ResearchProgress;
|
||||
export default async function ResearchProgress({
|
||||
params,
|
||||
}: {
|
||||
params: {
|
||||
articleId: string;
|
||||
};
|
||||
}) {
|
||||
const data = await articleDetail({ id: params.articleId });
|
||||
return (
|
||||
<ArticleWithBreadcrumb
|
||||
breadcrumb={[
|
||||
{ title: "首页", href: "/" },
|
||||
{ title: "科研进展", href: "/general-news/pages/1" },
|
||||
{ title: data.title, href: `/general-news/${data.id}` },
|
||||
]}
|
||||
>
|
||||
<ArticleRender article={data} />
|
||||
</ArticleWithBreadcrumb>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user