fix: 修复Enter登录重复触发,阻止事件冒泡
This commit is contained in:
@@ -76,6 +76,7 @@ const schema = reactive<FormSchema[]>([
|
|||||||
// 按下enter键触发登录
|
// 按下enter键触发登录
|
||||||
onKeydown: (_e: any) => {
|
onKeydown: (_e: any) => {
|
||||||
if (_e.key === 'Enter') {
|
if (_e.key === 'Enter') {
|
||||||
|
_e.stopPropagation() // 阻止事件冒泡
|
||||||
signIn()
|
signIn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user