This commit is contained in:
@@ -251,16 +251,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
obj: {},
|
||||
serverError: {},
|
||||
|
||||
appError: null,
|
||||
formState: {
|
||||
ready: false,
|
||||
dirty: false,
|
||||
valid: true,
|
||||
readOnly: false,
|
||||
loading: true,
|
||||
errorBoxMessage: null
|
||||
errorBoxMessage: null,
|
||||
appError: null,
|
||||
serverError: {}
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -299,7 +298,7 @@ export default {
|
||||
.get(url)
|
||||
.then(res => {
|
||||
if (res.error) {
|
||||
vm.serverError = res.error;
|
||||
vm.formState.serverError = res.error;
|
||||
vm.$gzform.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
vm.obj = res.data;
|
||||
@@ -335,7 +334,7 @@ export default {
|
||||
.then(res => {
|
||||
this.formState.loading = false;
|
||||
if (res.error) {
|
||||
vm.serverError = res.error;
|
||||
vm.formState.serverError = res.error;
|
||||
vm.$gzform.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
vm.$gzform.setFormState({
|
||||
|
||||
Reference in New Issue
Block a user