This commit is contained in:
@@ -155,7 +155,12 @@ export default {
|
|||||||
//no content, nothing to process
|
//no content, nothing to process
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
return response.json();
|
let contentType = response.headers.get("content-type");
|
||||||
|
// console.log("gzapi::JSON method, content type is:", contentType);
|
||||||
|
if (contentType && contentType.includes("json")) {
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
return response;
|
||||||
},
|
},
|
||||||
apiErrorToHumanString(apiError) {
|
apiErrorToHumanString(apiError) {
|
||||||
//empty error object?
|
//empty error object?
|
||||||
|
|||||||
@@ -213,7 +213,6 @@ function populateSelectionLists(vm) {
|
|||||||
if (res.error) {
|
if (res.error) {
|
||||||
window.$gz.errorHandler.handleFormError(res.error, vm);
|
window.$gz.errorHandler.handleFormError(res.error, vm);
|
||||||
} else {
|
} else {
|
||||||
debugger;
|
|
||||||
vm.selectLists.serverLogs = res.data;
|
vm.selectLists.serverLogs = res.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user