修复编译问题 & 将人机验证组件动态化

This commit is contained in:
2025-12-20 18:05:46 +08:00
parent c979765a77
commit adc8195d53
8 changed files with 13 additions and 73 deletions

View File

@@ -1,4 +1,4 @@
import {ReactNode} from 'react'
import {ReactNode, Suspense} from 'react'
import {Metadata} from 'next'
export async function generateMetadata(): Promise<Metadata> {
@@ -12,5 +12,5 @@ export type ProfileLayoutProps = {
}
export default async function ProfileLayout(props: ProfileLayoutProps) {
return props.children
return <Suspense>{props.children}</Suspense>
}