使用nextTick解决
//关闭弹框 handleClose(formName) { this.addDialogVisible = false; this.$nextTick(() => { this.$refs[formName].resetFields(); }); },
使用nextTick解决
//关闭弹框 handleClose(formName) { this.addDialogVisible = false; this.$nextTick(() => { this.$refs[formName].resetFields(); }); },