elementUI编辑时清除表单检验

clearvali() { this.$refs.form.clearValidate() }, handleEdit(row) { this.open = true this.title = '修改工作类型' console.log('row', row) this.getDetail(row.id) if (this.$refs['form'] !== undefined) { this.clearvali() } },

    推荐阅读