Fixed potential null reference
This commit is contained in:
parent
87f1da7688
commit
1607b4993e
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ export default {
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
(this.$refs.username as HTMLElement).focus();
|
(this.$refs.username as HTMLElement | null)?.focus();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue