From 975fa1a7e26ed8c8925f1dcce28f090ccf2a000a Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 21 May 2025 16:42:19 +0800 Subject: [PATCH] . --- chatdesk-ui/app/[locale]/login/page.tsx | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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;