This commit is contained in:
2020-04-09 22:58:18 +00:00
parent ae3baeb954
commit 019fb4a76d
11 changed files with 10 additions and 63 deletions

View File

@@ -204,7 +204,6 @@ export default {
window.$gz.api
.upsert(url, vm.obj)
.then(res => {
vm.formState.loading = false;
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
@@ -217,8 +216,10 @@ export default {
}
})
.catch(function handleSubmitError(error) {
vm.formState.loading = false;
window.$gz.errorHandler.handleFormError(error, vm);
})
.finally(function() {
vm.loading = false;
});
}
}