Commit c93c1852 by lianyang

checkAll,没有错时,清除之前的校验状态

parent ab698803
......@@ -80,6 +80,8 @@ export default {
const fieldErrors = result.fieldErrors;
this.updateModel(result.data);
if(fieldErrors && Object.keys(fieldErrors).length == 0){
// 清除之前的校验状态
this.getRoot().$refs.modelForm.clearValidate();
this.$notify({
title: "成功",
message: "校验成功",
......@@ -88,7 +90,6 @@ export default {
return
}
const tab = this.showBackendErrors(fieldErrors)
if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment