Mixin performance #875
|
@ -5,7 +5,6 @@ let isNotified = false;
|
|||
|
||||
export default {
|
||||
created: function () {
|
||||
console.error('mainShortcutMixin created');
|
||||
const router = useRouter();
|
||||
const keyBindingMap = routes
|
||||
.filter((route) => route.meta.keyBinding)
|
||||
|
|
|
@ -5,12 +5,13 @@ function focusFirstInput(input) {
|
|||
export default {
|
||||
mounted: function () {
|
||||
const that = this;
|
||||
|
||||
const form = document.querySelector('.q-form#formModel');
|
||||
if (!form) return;
|
||||
try {
|
||||
// Login
|
||||
const inputsFormCard = document.querySelectorAll(
|
||||
'.q-form#formModel input:not([disabled]):not([type="checkbox"])'
|
||||
const inputsFormCard = form.querySelectorAll(
|
||||
`input:not([disabled]):not([type="checkbox"])`
|
||||
);
|
||||
if (inputsFormCard.length) {
|
||||
// .focus();
|
||||
|
|
Loading…
Reference in New Issue