mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
trigger login when press enter in password textbox
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
:placeholder="$t('Your password')"
|
:placeholder="$t('Your password')"
|
||||||
:value="password"
|
:value="password"
|
||||||
@input="password = $event.target.value; tempToken = ''"
|
@input="password = $event.target.value; tempToken = ''"
|
||||||
|
@keyup.enter.native="loginByPressEnter"
|
||||||
></f7-list-input>
|
></f7-list-input>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
<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() {
|
verify() {
|
||||||
const self = this;
|
const self = this;
|
||||||
const router = self.$f7router;
|
const router = self.$f7router;
|
||||||
|
|||||||
Reference in New Issue
Block a user