From 3eb4d908ebad4d594c46a78524e9950fe05a9585 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 16 Dec 2024 18:58:16 +0800 Subject: [PATCH] no message --- js/common.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/common.js b/js/common.js index 5f8dd99..07bc8f3 100644 --- a/js/common.js +++ b/js/common.js @@ -52,8 +52,6 @@ function $ajaxget(url, data) { } ) .then(function (res) { - console.log("res", res) - var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data if (data.code == 401) { @@ -66,7 +64,7 @@ function $ajaxget(url, data) { }) .catch(error => { if (error.response?.status == 401) openShowWindow() - resolve(error) + reject(error) }) }) }