trigger login when press enter in password textbox

This commit is contained in:
MaysWind
2020-11-10 00:02:20 +08:00
parent 8fa305212a
commit 00fa402483
+11
View File
@@ -17,6 +17,7 @@
:placeholder="$t('Your password')"
:value="password"
@input="password = $event.target.value; tempToken = ''"
@keyup.enter.native="loginByPressEnter"
></f7-list-input>
</f7-list>
<f7-list>
@@ -201,6 +202,16 @@ export default {
}
});
},
loginByPressEnter() {
const app = this.$f7;
const $$ = app.$;
if ($$('.modal-in').length) {
return;
}
return this.login();
},
verify() {
const self = this;
const router = self.$f7router;