成功提交表单后,将显示验证消息。
浏览器:Mozilla Firefox
init(frame: CGRect)
上面提到的代码用于在成功后重置表单。
答案 0 :(得分:0)
基于this issue,我相信您的解决方案将是:
const blankForm = {
branch: '',
department: '',
designation: '',
mobile: '+91 '
}
clearNewShow() {
this.formValues = {...blankForm}
this.$validator.pause()
this.$nextTick(() => {
this.$validator.errors.clear()
this.$validator.fields.items.forEach(field => field.reset())
this.$validator.fields.items.forEach(field => this.errors.remove(field))
this.$validator.resume()
})
}