商品类型输入验证问题修复

This commit is contained in:
macro 2021-02-27 16:00:48 +08:00
parent 9d128fc18a
commit 9c88094af5

View File

@ -70,6 +70,7 @@
<el-dialog
:title="dialogTitle"
:visible.sync="dialogVisible"
:before-close="handleClose()"
width="30%">
<el-form ref="productAttrCatForm":model="productAttrCate" :rules="rules" label-width="120px">
<el-form-item label="类型名称" prop="name">
@ -194,6 +195,11 @@
return false;
}
});
},
handleClose(){
if (!this.dialogVisible && this.$refs.productAttrCatForm) {
this.$refs.productAttrCatForm.clearValidate()
}
}
}
}