代码优化

This commit is contained in:
Elune
2019-12-12 12:39:09 +08:00
parent 00d5b4cb25
commit 9f4689dc32
2 changed files with 5 additions and 1 deletions

View File

@@ -178,6 +178,10 @@ function CRUD(options) {
if (editStatus === CRUD.STATUS.PREPARED) {
callVmHook(crud, CRUD.HOOK.afterEditCancel, crud.form)
}
// 清除表单验证
if (crud.findVM('form').$refs['form']) {
crud.findVM('form').$refs['form'].clearValidate()
}
},
/**
* 提交新增/编辑