From 8d3643ebf1bf11d609531c2111292eb0a735fac4 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 23 Jun 2025 13:34:24 +0800 Subject: [PATCH] . --- apps/blogai/app/[locale]/morphic/layout.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/blogai/app/[locale]/morphic/layout.tsx b/apps/blogai/app/[locale]/morphic/layout.tsx index 4a29182..87786e3 100644 --- a/apps/blogai/app/[locale]/morphic/layout.tsx +++ b/apps/blogai/app/[locale]/morphic/layout.tsx @@ -1,6 +1,6 @@ import type { Metadata, Viewport } from 'next' import { Inter as FontSans } from 'next/font/google' -import { AI } from './action' // 注意,导入的是 { AI },不是 AIProvider! +import { AI } from './action' import '../../globals.css' import { cn } from '@/lib/utils' import { ThemeProvider } from '@/components/mpv2/theme-provider' @@ -39,11 +39,12 @@ export const viewport: Viewport = { maximumScale: 1 } +// ✅ 这里类型一定要这样!不能直接 children: React.ReactNode export default function RootLayout({ - children -}: Readonly<{ + children, +}: { children: React.ReactNode -}>) { +}) { return ( {children} + {/*