This commit is contained in:
@@ -12,7 +12,7 @@ export default {
|
||||
})
|
||||
)
|
||||
.then(window.$gz.api.status)
|
||||
.then(window.$gz.api.json)
|
||||
.then(window.$gz.api.extractBody)
|
||||
.then(processLogin)
|
||||
.then(() => {
|
||||
return Promise.resolve(true);
|
||||
|
||||
@@ -159,7 +159,7 @@ export default {
|
||||
if (!contentType) {
|
||||
return response;
|
||||
}
|
||||
// console.log("gzapi::JSON method, content type is:", contentType);
|
||||
console.log("gzapi::extractBody method, content type is:", contentType);
|
||||
if (contentType.includes("json")) {
|
||||
return response.json();
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
window.$gz.api.fetchPostOptions(needIt)
|
||||
)
|
||||
.then(window.$gz.api.status)
|
||||
.then(window.$gz.api.json)
|
||||
.then(window.$gz.api.extractBody)
|
||||
// eslint-disable-next-line
|
||||
.then((response) => {
|
||||
window.$gz._.forEach(
|
||||
|
||||
Reference in New Issue
Block a user