Skip to content

Commit

Permalink
商品类型输入验证问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Feb 27, 2021
1 parent 9d128fc commit 9c88094
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/pms/productAttr/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -194,6 +195,11 @@
return false;
}
});
},
handleClose(){
if (!this.dialogVisible && this.$refs.productAttrCatForm) {
this.$refs.productAttrCatForm.clearValidate()
}
}
}
}
Expand Down

0 comments on commit 9c88094

Please sign in to comment.