Vue VeeValidate verifies duplicate password problem

in vue, I use vee-validate to validate the duplicate password of the form, using the verification rules of the official website, as follows:

enter the password:
< input VMI model = "password" type= "text" name= "password_confirmation" >

enter the password again:
< input VMI validates = "{is: password}" type= "text" name= "password" >

will report an error

what is the reason for this, or is there something wrong? How to solve it? if it doesn"t work, you don"t need this to verify
I have Baidu related, ( https://blog.csdn.net/ywl5707...)

but it can"t solve the problem, so I still report this mistake.

Apr.27,2022

add the attribute ref= "password" to the input of entering the password, and the is in the following input should be enclosed in single quotation marks


recommended to use VccValidate
https://dev-zl.github.io/VccV...

Menu