From 21d0c53174fa97f552e881c58bde7876b94dc212 Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 9 Jul 2025 12:16:01 +0800 Subject: [PATCH] 7.8 --- apps/api/package.json | 6 ++++++ apps/web/src/app/_components/auth/register-form.tsx | 2 +- apps/web/src/app/_components/auth/schema.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 982a88b..d4508a6 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -19,6 +19,12 @@ "types": "./dist/es/types/index.d.ts", "default": "./dist/es/types/index.js" } + }, + "./run": { + "import": { + "types": "./dist/es/run.d.ts", + "default": "./dist/es/run.js" + } } }, "main": "./dist/cjs/index.js", diff --git a/apps/web/src/app/_components/auth/register-form.tsx b/apps/web/src/app/_components/auth/register-form.tsx index 3b9340f..27e6ce7 100644 --- a/apps/web/src/app/_components/auth/register-form.tsx +++ b/apps/web/src/app/_components/auth/register-form.tsx @@ -126,7 +126,7 @@ export function RegisterForm({ type="submit" className="w-full mt-8 " > - Login + register diff --git a/apps/web/src/app/_components/auth/schema.ts b/apps/web/src/app/_components/auth/schema.ts index 44c7d8e..aa7880e 100644 --- a/apps/web/src/app/_components/auth/schema.ts +++ b/apps/web/src/app/_components/auth/schema.ts @@ -11,7 +11,7 @@ export const authLoginRequestSchema = z.object({ .max(255, "密码最多255个字符"), }); export const authRegisterRequestSchema = z.object({ - email: z.string().email(), + email: z.string().email({ message: "请输入正确的邮箱地址" }), username: z .string() .min(4, "用户名必须至少4个字符")