From 4030231c2e8eef972acc4e2d9c99988fdf54b6e1 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Wed, 13 Nov 2024 15:12:31 +0800 Subject: [PATCH] no message --- css/details.css | 1 + css/details.less | 1 + js/common.js | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/css/details.css b/css/details.css index 71f5212..2c42e4b 100644 --- a/css/details.css +++ b/css/details.css @@ -1116,4 +1116,5 @@ font-size: 10px; color: #aaaaaa; padding-bottom: 60px; + padding-right: 20px; } diff --git a/css/details.less b/css/details.less index 681e332..6e94bd7 100644 --- a/css/details.less +++ b/css/details.less @@ -1281,4 +1281,5 @@ font-size: 10px; color: #aaaaaa; padding-bottom: 60px; + padding-right: 20px; } diff --git a/js/common.js b/js/common.js index 3a21ffe..f23aedc 100644 --- a/js/common.js +++ b/js/common.js @@ -27,7 +27,8 @@ function $ajax(url) { resolve(data) }) .catch(err => { - if (err.response.status == 401) showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) + console.log("error", error) + if (err.response?.status == 401) showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) }) }) } @@ -59,7 +60,8 @@ function $ajaxget(url, data) { resolve(data) }) .catch(error => { - if (error.response.status == 401) showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) + console.log("error", error) + if (error.response?.status == 401) showWindow("login", "https://passport.gter.net/login/ajax", "get", -1, { cover: true }) reject(error) }) })