How to set input to get focus state by default in nuxt framework

I set autofocus on input, but it"s only the first time I go in like this. I can also achieve input to get the focus state after clicking the button. Could you tell me how to write the grammar of nuxt? My click event is written in the methods hook function, but the this.$el/this.$refs fails when it gets the focus state. If you know, I hope you can give me some advice.

Mar.28,2021

this.$el.focus ()

Menu