From 38e673c73476c9f111dfd330f25c902400cd84d4 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 16 Dec 2024 19:02:38 +0800 Subject: [PATCH] no message --- js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common.js b/js/common.js index cf6975f..fd54aae 100644 --- a/js/common.js +++ b/js/common.js @@ -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) {