Timing of VeeValidate verification

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);
            }
        });
Mar.11,2021

use validateAll ()

doSubmit() {
      this.$validator.validateAll().then(valid => {
        // valid true
        if (valid) {
          // 
        } else {
          console.log('')
        }
      })
    },

VccValidate
https://dev-zl.github.io/VccV.

is recommended
Menu