This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user