layout.tsx 770 B

1234567891011121314151617181920212223242526272829303132
  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 {App, 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. <App>
  22. <ConfigProvider theme={{ hashed: false }}>
  23. {children}
  24. </ConfigProvider>
  25. </App>
  26. </AntdRegistry>
  27. </body>
  28. </html>
  29. );
  30. }