layout.tsx 753 B

123456789101112131415161718192021222324252627
  1. import type { Metadata } from "next";
  2. import { AntdRegistry } from "@ant-design/nextjs-registry";
  3. import "./normalize.css";
  4. import "./globals.css";
  5. import "@fortawesome/fontawesome-svg-core/styles.css"; // import Font Awesome CSS
  6. import { config } from "@fortawesome/fontawesome-svg-core";
  7. config.autoAddCss = false; // Tell Font Awesome to skip adding the CSS automatically since it's being imported above
  8. export const metadata: Metadata = {
  9. title: "MorTnon RuoYi",
  10. description: "MorTnon 版本高级 RuoYi 前台",
  11. };
  12. export default function RootLayout({
  13. children,
  14. }: Readonly<{
  15. children: React.ReactNode;
  16. }>) {
  17. return (
  18. <html lang="en">
  19. <body>
  20. <AntdRegistry>{children}</AntdRegistry>
  21. </body>
  22. </html>
  23. );
  24. }