方法1 首先在对话框 取消按钮 添加 click事件,例如:(ps:callOf 里面的addGroupData和ref - - ) <div slot="footer" class="dialog-footer"> <el-button @click="callOf('addGroup')">取消</el-button> </div> 点击取消按钮,关闭对话框,清除表单验证 callOf(formName)