From ce4ed49d095315278c2647037bd68c098dbebbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Thu, 9 Mar 2023 17:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E9=94=AE=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 0cf2064..84fe6be 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -79,6 +79,12 @@ export const Login: React.FC = () => { }); }; + const keyUp = (e: any) => { + if (e.keyCode === 13) { + loginSubmit(e); + } + }; + useEffect(() => { fetchData(); }, []); @@ -102,6 +108,7 @@ export const Login: React.FC = () => { }} style={{ width: 400, height: 54 }} placeholder="请输入管理员邮箱账号" + onKeyUp={(e) => keyUp(e)} />