beizhedenglong/vue-hooks-form

how do I highlight the errors that came from the server?

newbie78 opened this issue · 1 comments

hi! thanks for lib!
but how i do it?
what is the right way?

for example - an error when such an email already exists in the database

You can use asyncValidator(https://beizhedenglong.github.io/vue-hooks-form/guide/validation.html#asynchronous-validation) that returns a promise to check whether the email is already exists in server