layout.tsx 726 B

123456789101112131415161718192021222324252627282930
  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";
  6. import {ConfigProvider} from "antd";
  7. import '@ant-design/v5-patch-for-react-19';
  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>
  21. <ConfigProvider theme={{ hashed: false }}>
  22. {children}
  23. </ConfigProvider>
  24. </AntdRegistry>
  25. </body>
  26. </html>
  27. );
  28. }