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

 使用nextTick解决

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

 

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案