fixes js http client

This commit is contained in:
huangjx
2022-05-04 11:59:31 +08:00
parent 840c672c09
commit f51ad10014
9 changed files with 127 additions and 42 deletions

View File

@@ -29,7 +29,7 @@ const buttonHandler = (event, type) => {
console.log("gid is not set!");
}
}
Http.getInstance(url).setErrorHandler(function (xhr, textStatus, error) {
helper.httpClient(url).setErrorHandler(function (xhr, textStatus, error) {
console.log(error);
}).setHandler(function (data) {
if (data.hasOwnProperty('error')) {