update
This commit is contained in:
@ -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;
|
||||
|
@ -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} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user