diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index be8190d..bf5e23d 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
import "./globals.css";
+import { Providers } from "./providers";
export const metadata: Metadata = {
title: "Web Table - 压力表合同生产数据",
@@ -13,7 +14,9 @@ export default function RootLayout({
}>) {
return (
-
{children}
+
+ {children}
+
);
}
diff --git a/src/app/providers.tsx b/src/app/providers.tsx
new file mode 100644
index 0000000..8113150
--- /dev/null
+++ b/src/app/providers.tsx
@@ -0,0 +1,13 @@
+"use client";
+
+import { ConfigProvider } from "antd";
+import zhCN from "antd/locale/zh_CN";
+import dayjs from "dayjs";
+import "dayjs/locale/zh-cn";
+
+// antd v6 DatePicker 基于 dayjs;设置 dayjs 中文 locale 后,日期面板的月份/星期才会显示中文。
+dayjs.locale("zh-cn");
+
+export function Providers({ children }: { children: React.ReactNode }) {
+ return {children};
+}