error request controlled
This commit is contained in:
parent
6cdaadfa92
commit
fe72409b11
2
resources/assets/js/plugins/form.js
vendored
2
resources/assets/js/plugins/form.js
vendored
@ -493,10 +493,12 @@ export default class Form {
|
||||
|
||||
// Form fields check validation issue
|
||||
onFail(error) {
|
||||
if (error.request) {
|
||||
if (error.request.status == 419) {
|
||||
window.location.href = '';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof this.errors != "undefined") {
|
||||
this.errors.record(error.response.data.errors);
|
||||
|
Loading…
x
Reference in New Issue
Block a user