the problem is that validator requires user interaction to verify. I mean, users don"t do anything, just click the submit button, how to trigger verification
Vue.use(VeeValidate);
var app = new Vue({
el: "-sharpapp",
data: {
},
methods: {
doSubmit: function(){
//
// required
console.log(this.$validator.errors.all());
// []
console.log(this.$validator.errors.any());
// false
}
},
created: function(){
//
this.$validator.localize("zh_CN", dictionary);
}
});