This commit is contained in:
2020-05-23 21:57:16 +00:00
parent 1a0f99d6b9
commit 0dfa3dddec
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ export default {
}) })
) )
.then(window.$gz.api.status) .then(window.$gz.api.status)
.then(window.$gz.api.json) .then(window.$gz.api.extractBody)
.then(processLogin) .then(processLogin)
.then(() => { .then(() => {
return Promise.resolve(true); return Promise.resolve(true);

View File

@@ -159,7 +159,7 @@ export default {
if (!contentType) { if (!contentType) {
return response; return response;
} }
// console.log("gzapi::JSON method, content type is:", contentType); console.log("gzapi::extractBody method, content type is:", contentType);
if (contentType.includes("json")) { if (contentType.includes("json")) {
return response.json(); return response.json();
} }

View File

@@ -37,7 +37,7 @@ export default {
window.$gz.api.fetchPostOptions(needIt) window.$gz.api.fetchPostOptions(needIt)
) )
.then(window.$gz.api.status) .then(window.$gz.api.status)
.then(window.$gz.api.json) .then(window.$gz.api.extractBody)
// eslint-disable-next-line // eslint-disable-next-line
.then((response) => { .then((response) => {
window.$gz._.forEach( window.$gz._.forEach(