fixes form.getFieldValue is not a function (#6110)

This commit is contained in:
Hoang Nguyen 2022-03-15 18:14:55 +07:00 committed by GitHub
parent b2965462ea
commit 56bf418185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ export default {
} else if (rule.field === 'confirmpassword') {
const form = this.form
const messageConfirm = this.$t('message.validate.equalto')
const passwordVal = form.getFieldValue('password')
const passwordVal = form.password
if (passwordVal && passwordVal !== value) {
return Promise.reject(messageConfirm)
} else {