The following errors were encountered during form verification; This error will be reported when you lose focus or click to verify
If you look at the examples in the ElementUI document, you will find that they implement custom rules, setTimeout
is used to limit the number of times the rules are called. In your case, once the field has a value (ergo, if
is false), your else
block will be executed again and again until it exceeds the maximum call stack size. You can solve this problem by restricting calls to custom rules