no message

This commit is contained in:
A1300399510 2024-12-16 19:02:38 +08:00
parent 0cdae227fc
commit 38e673c734

View File

@ -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) {