vue表单清空方法

vue表单清空方法

调用(releaseForm为表单名字)

this.resetForm('releaseForm');
或
@click="onSubmit('reportForm')"

方法

resetForm(formName) {
  //初始化表单
  this.$nextTick(()=>{
    this.$refs[formName].resetFields();
  })
},
发布了94 篇原创文章 · 获赞 44 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_43639296/article/details/96571558