Element plus form custom validation rules do not work

The element plus form custom verification rules do not work
1. Today, the use of the element plus form custom verification rules has not worked. Many solutions on the Internet did not work. Later, it was found that it was the order of writing, which led to inaccuracies. kick in

Reason: The code in the script step is executed immediately after rendering, following the rule of declaring before using.
insert image description here
2. Solution:
insert image description here

Guess you like

Origin blog.csdn.net/Smile_666666/article/details/122945884