修复编译问题 & 将人机验证组件动态化
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user