no message

This commit is contained in:
A1300399510 2024-11-13 15:12:31 +08:00
parent e5872f98e3
commit 4030231c2e
3 changed files with 6 additions and 2 deletions

View File

@ -1116,4 +1116,5 @@
font-size: 10px; font-size: 10px;
color: #aaaaaa; color: #aaaaaa;
padding-bottom: 60px; padding-bottom: 60px;
padding-right: 20px;
} }

View File

@ -1281,4 +1281,5 @@
font-size: 10px; font-size: 10px;
color: #aaaaaa; color: #aaaaaa;
padding-bottom: 60px; padding-bottom: 60px;
padding-right: 20px;
} }

View File

@ -27,7 +27,8 @@ function $ajax(url) {
resolve(data) resolve(data)
}) })
.catch(err => { .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) resolve(data)
}) })
.catch(error => { .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) reject(error)
}) })
}) })