页面布局自适应修调

This commit is contained in:
2026-09-07 14:11:44 +08:00
parent d1eaef0da4
commit d7001a207f
3 changed files with 32 additions and 7 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import type { Metadata } from "next";
import type { Metadata, Viewport } from "next";
import "./globals.css";
import { SiteFooter } from "@/components/layout/site-footer";
import { SiteHeader } from "@/components/layout/site-header";
@@ -14,6 +14,11 @@ export const metadata: Metadata = {
},
};
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
};
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {