no message

This commit is contained in:
A1300399510 2024-12-16 18:58:16 +08:00
parent 3ddbcbb211
commit 3eb4d908eb

View File

@ -52,8 +52,6 @@ function $ajaxget(url, data) {
} }
) )
.then(function (res) { .then(function (res) {
console.log("res", res)
var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data var data = typeof res.data == "string" ? JSON.parse(res.data) : res.data
if (data.code == 401) { if (data.code == 401) {
@ -66,7 +64,7 @@ function $ajaxget(url, data) {
}) })
.catch(error => { .catch(error => {
if (error.response?.status == 401) openShowWindow() if (error.response?.status == 401) openShowWindow()
resolve(error) reject(error)
}) })
}) })
} }