layout.tsx 669 Bytes
import type { Metadata } from "next";
import "./globals.css";
import AppShell from "@/components/AppShell";

export const metadata: Metadata = {
  title: "Wiki App",
  description: "Enterprise Wiki Application",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html
      lang="zh-CN"
      className="h-full antialiased font-sans"
    >
      <body className="min-h-full h-screen bg-[#F8FAFC] text-slate-900 font-sans overflow-hidden">
        {/* 侧边栏、顶栏用户信息、未登录拦截统一由 AppShell 承担 */}
        <AppShell>{children}</AppShell>
      </body>
    </html>
  );
}