超管后台 - 增加错误提示

This commit is contained in:
柳清爽
2025-04-10 17:49:42 +08:00
parent 15ef17b79f
commit 4607bb1d4a
5 changed files with 326 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ import { Inter } from "next/font/google"
import "./globals.css"
import { ThemeProvider } from "@/components/theme-provider"
import { ToastProvider } from "@/components/ui/use-toast"
import ErrorBoundary from "@/components/ErrorBoundary"
const inter = Inter({ subsets: ["latin"] })
@@ -23,7 +24,9 @@ export default function RootLayout({
<body className={inter.className}>
<ThemeProvider attribute="class" defaultTheme="light" enableSystem disableTransitionOnChange>
<ToastProvider>
{children}
<ErrorBoundary>
{children}
</ErrorBoundary>
</ToastProvider>
</ThemeProvider>
</body>