chore: 同步完整版代码

This commit is contained in:
xiaoxian521
2024-07-03 11:52:17 +08:00
parent c6b0aa2467
commit c0f3dcbbb7
7 changed files with 1011 additions and 820 deletions

View File

@@ -63,7 +63,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
/** 使用公共函数,避免`removeEventListener`失效 */
function onkeypress({ code }: KeyboardEvent) {
if (code === "Enter") {
if (["Enter", "NumpadEnter"].includes(code)) {
onLogin(ruleFormRef.value);
}
}