fieldName не найдено для проверки метода sameAs.
sameAs (blabla)
blabla = 'internalFormData.password', 'internalFormData.password.value', 'this.internalFormData.password',' this.internalFormData.password.value ',' password ',' this.password ',' password.value '
-----------script----------
data () {
return {
internalFormData: {
password: '',
repassword: ''
}
}
},
validations: {
password: {
value: {
required,
minLength: minLength(8)
}
},
repassword: {
value: {
required,
minLength: minLength(8),
sameAs: sameAs('internalFormData.password')
}
}
}
},
---------------template--------------
<error
v-if="!$v.internalFormData.repassword.value.sameAs"
>
비밀번호가 일치하지 않습니다.
<error>
Ошибка не исчезнет.