no message
This commit is contained in:
parent
0cdae227fc
commit
38e673c734
@ -41,7 +41,7 @@ function $ajaxget(url, data) {
|
||||
|
||||
url = url.indexOf("https://") > -1 ? url : projectBaseURL + url
|
||||
url += objectToQueryString(data)
|
||||
return new Promise(function (resolve, reject) {
|
||||
return new Promise((resolve, reject) => {
|
||||
axios
|
||||
.get(
|
||||
url,
|
||||
@ -51,7 +51,7 @@ function $ajaxget(url, data) {
|
||||
withCredentials: true,
|
||||
}
|
||||
)
|
||||
.then(function (res) {
|
||||
.then(res => {
|
||||
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data
|
||||
|
||||
if (data.code == 401) {
|
||||
|
Loading…
Reference in New Issue
Block a user