Element 表单 resetFields() 验证失效 几种不同的场景(图示)

  需求:当然是清除表单验证(即下方红色警告) 解决:这4种写法绝对可以解决问题了。 A:_this.$refs['formName'].resetFields(); B:if (_this.$refs['formName'] != undefined){_this.$refs['form1'].resetFields();} C: _this.$nextTick(() => {_this.$
相关文章
相关标签/搜索