Vue+elementui front-end rules verification cache problem

Scenes:

     Recently, the company requires that the project front-end should not use element-ui and instead use UI components developed by other groups in the company.

The basic use of this ui component is to directly and globally replace the el- prefix      of elementui with the xx- prefix developed by the company after installation .

     After replacing it, I found that the replacement was smooth and not a big problem. It can run successfully!

     Then I started testing and found a problem.

     Page addition and modification is a pop-up window. After clicking Modify, then click Add, the new window will pop up, showing the following effect:

   

 solve:  

    The next step is to perform verification and cleaning before closing the pop-up window. After doing this, the above situation will no longer occur.

    this.$refs.dataForm.clearValidate();

    

Guess you like

Origin blog.csdn.net/ss_Tina/article/details/131230923