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 = url.indexOf("https://") > -1 ? url : projectBaseURL + url
|
||||||
url += objectToQueryString(data)
|
url += objectToQueryString(data)
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise((resolve, reject) => {
|
||||||
axios
|
axios
|
||||||
.get(
|
.get(
|
||||||
url,
|
url,
|
||||||
@ -51,7 +51,7 @@ function $ajaxget(url, data) {
|
|||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(function (res) {
|
.then(res => {
|
||||||
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data
|
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data
|
||||||
|
|
||||||
if (data.code == 401) {
|
if (data.code == 401) {
|
||||||
|
Loading…
Reference in New Issue
Block a user