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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36b68-2b88a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36b68-2b88a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?