diff --git a/chatdesk-ui/app/[locale]/login/page.tsx b/chatdesk-ui/app/[locale]/login/page.tsx index ea94155..3f450c3 100644 --- a/chatdesk-ui/app/[locale]/login/page.tsx +++ b/chatdesk-ui/app/[locale]/login/page.tsx @@ -19,15 +19,28 @@ export const metadata: Metadata = { title: "Login" } +interface LoginPageProps { + searchParams: { message: string; email?: string }; + params: { locale: string }; + req: NextPageContext['req']; // 用 NextPageContext 的 req 类型来定义 +} + + +// export default async function Login({ +// searchParams, +// params: { locale }, +// req, // 请求对象 +// }: { +// searchParams: { message: string; email?: string }; +// params: { locale: string }; +// req: Request; // 获取请求对象 +// }) { + export default async function Login({ searchParams, params: { locale }, - req, // 请求对象 -}: { - searchParams: { message: string; email?: string }; - params: { locale: string }; - req: Request; // 获取请求对象 -}) { + req, // 请求对象 +}: LoginPageProps) { const cookieStore = cookies() const localeString = locale;