From 62209061640c3db1663519155c6079245bfa932e Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 23 Jan 2026 18:58:54 +0800 Subject: [PATCH] Fix: Fixed the error on the login page. (#12801) ### What problem does this PR solve? Fix: Fixed the error on the login page. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/agent/form/categorize-form/index.tsx | 2 +- web/src/pages/login-next/index.tsx | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/web/src/pages/agent/form/categorize-form/index.tsx b/web/src/pages/agent/form/categorize-form/index.tsx index b9932149a..f0e38a733 100644 --- a/web/src/pages/agent/form/categorize-form/index.tsx +++ b/web/src/pages/agent/form/categorize-form/index.tsx @@ -38,7 +38,7 @@ function CategorizeForm({ node }: INextOperatorForm) { diff --git a/web/src/pages/login-next/index.tsx b/web/src/pages/login-next/index.tsx index bac4e6cc8..0dac49e14 100644 --- a/web/src/pages/login-next/index.tsx +++ b/web/src/pages/login-next/index.tsx @@ -43,8 +43,6 @@ const Login = () => { const { t } = useTranslation('translation', { keyPrefix: 'login' }); const [isLoginPage, setIsLoginPage] = useState(true); - const [isUserInteracting, setIsUserInteracting] = useState(true); - const loading = signLoading || registerLoading || @@ -73,12 +71,11 @@ const Login = () => { setTimeout(() => { setTitle(title === 'login' ? 'register' : 'login'); }, 200); - // setTitle((title) => (title === 'login' ? 'register' : 'login')); }; const FormSchema = z .object({ - nickname: z.string().optional(), + nickname: z.string(), email: z .string() .email() @@ -106,11 +103,8 @@ const Login = () => { resolver: zodResolver(FormSchema), }); - const onCheck = async (params) => { - console.log('params', params); + const onCheck = async (params: z.infer) => { try { - // const params = await form.validateFields(); - const rsaPassWord = rsaPsw(params.password) as string; if (title === 'login') { @@ -154,7 +148,7 @@ const Login = () => { color={'rgb(128, 255, 248)'} />
- +
@@ -190,7 +184,7 @@ const Login = () => {
onCheck(data))} + onSubmit={form.handleSubmit(onCheck)} >