This commit is contained in:
parent
80ace16393
commit
975fa1a7e2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue