This commit is contained in:
quantulr
2023-10-29 22:25:16 +08:00
parent 73bc779168
commit 1090ca0dd0
13 changed files with 118 additions and 91 deletions

View File

@ -1,7 +1,4 @@
import { ReactNode } from "react";
import circle from "@/app/assets/circle.png";
import Image from "next/image";
import LeftNav from "@/app/components/LeftNav";
import ArticleLayout from "@/app/components/ArticleLayout";
const navLinks = [
@ -20,7 +17,11 @@ const Layout = ({
articleId: string;
};
}) => {
return <ArticleLayout>{children}</ArticleLayout>;
return (
<ArticleLayout leftNavTitle={"新闻详情"} navigations={[]}>
{children}
</ArticleLayout>
);
};
export default Layout;

View File

@ -9,9 +9,5 @@ export default async function Article({
};
}) {
const data = await articleDetail({ id: params.articleId });
return (
<div className={"ml-2.5"}>
<ArticleContent article={data} />
</div>
);
return <ArticleContent article={data} />;
}