| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import "@ant-design/v5-patch-for-react-19";
- import { AntdRegistry } from "@ant-design/nextjs-registry";
- import type { Metadata } from "next";
- import { Geist, Geist_Mono } from "next/font/google";
- import "./globals.css";
- import { ConfigProvider } from "antd";
- import zhCN from "antd/locale/zh_CN";
- import { AuthProvider } from "@/contexts/AuthContext";
- const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
- });
- const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
- subsets: ["latin"],
- });
- export const metadata: Metadata = {
- title: "Lanu OP - 运营管理后台",
- description: "Lanu operation platform",
- };
- export default function RootLayout({
- children,
- }: Readonly<{
- children: React.ReactNode;
- }>) {
- return (
- <html lang="zh-CN">
- <body
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
- >
- <AntdRegistry>
- <ConfigProvider
- locale={zhCN}
- theme={{
- token: {
- colorPrimary: "#1890ff",
- },
- cssVar: true,
- }}
- >
- <AuthProvider>{children}</AuthProvider>
- </ConfigProvider>
- </AntdRegistry>
- </body>
- </html>
- );
- }
|