use the iview framework in the project. Now you want to do a prompt component for form validation, but you want to be able to use it in js. Message similar to iview
this.$Message.warn("....")
how to introduce components if you want to use them in this way.