This commit is contained in:
姚宇浩 2024-09-26 17:19:54 +08:00
commit 905cd689be
10 changed files with 4 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -30,8 +30,8 @@ axios.interceptors.response.use(
(error) => { (error) => {
if (error.response) { if (error.response) {
if (error.response.status == 401) { if (error.response.status == 401) {
// console.log(error.response,"响应拦截器失败")
ElMessage.error("请重新登录!"); ElMessage.error("请重新登录!");
// console.log(error.response,"响应拦截器失败")
// window.location.href = '/#/login?returnURL=' + window.location.href // window.location.href = '/#/login?returnURL=' + window.location.href
// window.location.href = // window.location.href =
// "http://220.191.238.50:996/api/login?returnURL=" + // "http://220.191.238.50:996/api/login?returnURL=" +
@ -45,9 +45,8 @@ axios.interceptors.response.use(
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;"; document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;";
} }
router.replace({ router.replace({
path: '/guide' path: "/guide",
}); });
} else if (error.response.status == 404) { } else if (error.response.status == 404) {
ElMessage.error("Status:404正在请求不存在的服务器记录"); ElMessage.error("Status:404正在请求不存在的服务器记录");
} else if (error.response.status == 500) { } else if (error.response.status == 500) {

View File

@ -159,7 +159,9 @@ const login = () => {
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
// document.cookie='lytoken=6b0e380b4a8f46baae4923f83faf670d'
var token = getCookie("lytoken"); var token = getCookie("lytoken");
// var token = '6b0e380b4a8f46baae4923f83faf670d'; // var token = '6b0e380b4a8f46baae4923f83faf670d';
// console.log('token', token) // console.log('token', token)
if (!token) { if (!token) {
@ -199,16 +201,6 @@ onMounted(() => {
// cookie // cookie
// clearCookies(); // clearCookies();
login(); login();
// let token = tools.data.get("token");
// console.log(token, "token");
// if (token == null) {
// ElMessage.error({
// message: "!",
// offset: 100,
// });
// window.location.href =
// "http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
// }
reset_font(); reset_font();
reset_font(); reset_font();
}); });