Element-ui form, background verification error, how to display error messages like foreground verification? Thank you.

such as the title, the background mongoose, returns the insertion error message, how does it correspond to the corresponding field in the form and display the error message like the foreground?

Mar.03,2021

1. The front and rear end agrees on the error type;
2, the back end returns the corresponding error type and information according to the error information;
3. The front end displays the error message by judging the error type.

Menu