Fixed a bug that prevented you from logging&signup

This commit is contained in:
supertiger1234 2019-11-06 10:11:58 +00:00
parent 46533fa53a
commit 112f07fbc4
2 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,7 @@
v-if="!showCaptcha"
action="#"
@submit.prevent="submitForm"
@keydown.prevent="keyDownEvent"
@keydown="keyDownEvent"
>
<div class="input">
<div class="input-text">
@ -104,6 +104,7 @@ export default {
},
keyDownEvent(event) {
if (event.keyCode === 13) {
event.preventDefault();
this.submitForm();
}
},

View file

@ -15,7 +15,7 @@
v-if="!showCaptcha"
action="#"
@submit.prevent="formSubmit"
@keydown.prevent="keyDownEvent"
@keydown="keyDownEvent"
>
<div class="input">
<div class="input-text">
@ -116,6 +116,7 @@ export default {
},
keyDownEvent(event) {
if (event.keyCode === 13) {
event.preventDefault();
this.formSubmit();
}
},