Fix js errors
This commit is contained in:
@@ -175,9 +175,11 @@
|
|||||||
class: 'alert-danger'
|
class: 'alert-danger'
|
||||||
});
|
});
|
||||||
const violations = error.response.data.violations;
|
const violations = error.response.data.violations;
|
||||||
|
if (typeof violations !== 'undefined') {
|
||||||
for (let violation of violations) {
|
for (let violation of violations) {
|
||||||
this.formErrors[violation.property_path] = violation.message;
|
this.formErrors[violation.property_path] = violation.message;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['beginLoding', 'endLoading', 'alert']),
|
...mapMutations(['beginLoading', 'endLoading', 'alert']),
|
||||||
toggleReqistration () {
|
toggleReqistration () {
|
||||||
this.userData.newsletter = !this.userData.newsletter;
|
this.userData.newsletter = !this.userData.newsletter;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
registration: this.userData.newsletter
|
registration: this.userData.newsletter
|
||||||
};
|
};
|
||||||
|
|
||||||
this.beginLoding();
|
this.beginLoading();
|
||||||
|
|
||||||
const client = axios.create({
|
const client = axios.create({
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user