fix: 修复Enter登录重复触发,阻止事件冒泡

This commit is contained in:
xzz2021
2025-02-13 09:46:46 +08:00
parent 319cdd1820
commit 97e7660e21

View File

@@ -76,6 +76,7 @@ const schema = reactive<FormSchema[]>([
// 按下enter键触发登录
onKeydown: (_e: any) => {
if (_e.key === 'Enter') {
_e.stopPropagation() // 阻止事件冒泡
signIn()
}
}