From 6f4bff9bd0073751d7f41e5340b025cad4109e46 Mon Sep 17 00:00:00 2001 From: zhang1106 <849185023@qq.com> Date: Wed, 17 Jun 2026 11:31:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E4=BF=AE=E5=A4=8D=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=A1=B5=E9=9D=A2=E7=94=A8=E6=88=B7=E5=90=8D=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=B8=B2=E6=9F=93=E5=B9=B6=E5=B0=86=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=94=B9=E4=B8=BA=E9=80=89=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 给通用块 username 字段增加 !registerMode 条件,避免注册模式下重复渲染 - 移除邮箱、手机号的 required 校验,改为选填(邮箱保留格式校验) - placeholder 增加(选填)提示 --- frontend/src/pages/Login.jsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx index 3602c45..b9c9745 100644 --- a/frontend/src/pages/Login.jsx +++ b/frontend/src/pages/Login.jsx @@ -277,12 +277,11 @@ const Login = () => { name="email" label="邮箱" rules={[ - { required: true, message: '请输入邮箱' }, { type: 'email', message: '请输入有效的邮箱地址' }, ]} > } /> @@ -290,10 +289,9 @@ const Login = () => {