element 关闭dialog弹框 校验信息依然存在的问题

 使用nextTick解决

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

 

posted @ 2020-07-20 16:32  紫诺花开  阅读(832)  评论(0编辑  收藏  举报