修复validateForm方法错误。

master
vdpAdmin 2022-04-17 09:40:22 +08:00
parent dca013e56b
commit 366486658b
1 changed files with 6 additions and 6 deletions

View File

@ -548,14 +548,14 @@
this.$refs.renderForm.clearValidate(props)
},
/* 验证表单通过返回true不通过返回false */
validateForm() {
let result = null
/**
* 校验表单
* @param callback 回调函数
*/
validateForm(callback) {
this.$refs['renderForm'].validate((valid) => {
result = valid
callback(valid)
})
return result
},
validateFields() {