layout.tsx 745 B

123456789101112131415161718192021222324252627282930313233
  1. import type {Metadata} from "next";
  2. import "./globals.css";
  3. import {AntdRegistry} from "@ant-design/nextjs-registry";
  4. import '@ant-design/v5-patch-for-react-19';
  5. import HeaderBlock from "@/components/headerBlock";
  6. import FooterBlock from "@/components/footerBlock";
  7. export const metadata: Metadata = {
  8. title: "中科盛阳信息技术有限公司",
  9. description: "中科盛阳信息技术有限公司官网",
  10. icons:{
  11. icon:'/favicon.ico'
  12. }
  13. };
  14. export default function RootLayout({
  15. children,
  16. }: Readonly<{
  17. children: React.ReactNode;
  18. }>) {
  19. console.log(123);
  20. return (
  21. <html lang="en">
  22. <body>
  23. <AntdRegistry>
  24. <HeaderBlock/>
  25. {children}
  26. <FooterBlock/>
  27. </AntdRegistry>
  28. </body>
  29. </html>
  30. );
  31. }