Vuejs vuelidate erros:得到laravel服务器错误

时间:2018-03-23 13:32:25

标签: laravel vuejs2 vuelidate

在我使用的Laravel 5.5 / vue.js2.5应用程序中 vee-validate和vee-validate-laravel(https://www.npmjs.com/package/vee-validate-laravel)库。 最后一个用于处理服务器错误,就像客户端vuejs错误一样,我写的代码如下:

        axios({
            method: ( 'post' ),
        }).then((response) => {
            ...
        }).catch((error) => {
            this.$setLaravelValidationErrorsFromResponse(error.response.data);
            ...
        });

现在我使用vuelidate(https://github.com/monterail/vuelidate)并需要一些类似的决定 我试图谷歌,但没有找到,如果在vuelidate中有类似的服务器错误的库(或决定)?

谢谢!

0 个答案:

没有答案