Close the pop-up window of element UI, and open it again to display the form verification prompt

Open the pop-up window without filling in any information, click the save button, trigger the verification prompt of the form, do not perform any operations, click the [Close button] or [Cancel button] to close the pop-up window, open the pop-up window again, and the verification prompt of the form is still displayed information,

 

Solution:

Add the @close event to el-dialog, add a click event to the cancel button, and reset the form in the event to solve the problem

 

 reset form

this.$refs.dialogForm.resetFields();

 

Guess you like

Origin blog.csdn.net/workhard0905/article/details/127073915