how to add a carriage return event to a page by vue
is a business similar to enter login.
at the beginning, add keyup to the input of the form to listen to enter, < el-input VMI model = "form.phone" @ keyup.enter.native= "queryList ("isCheck")" > < / el-input >
(here using elementUI)
but this method requires focus in the input box, but after the media, sales, date selector is selected, the focus is not on the above, keyup is useless.
after entering the query form, can you enter the enter event to query the list even if the focus is no longer in the form?
ask for communication!