From 775d7a2d326a4a856166b4dcc1a5b500a9294c9b Mon Sep 17 00:00:00 2001 From: sea <45450994+warmthsea@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:55:47 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=20(#1168)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index e5f19ba17..a0bcaf3e4 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -97,7 +97,11 @@ const immediateDebounce: any = debounce( ); useEventListener(document, "keypress", ({ code }) => { - if (code === "Enter" && !disabled.value && !loading.value) + if ( + ["Enter", "NumpadEnter"].includes(code) && + !disabled.value && + !loading.value + ) immediateDebounce(ruleFormRef.value); });